Created
July 20, 2020 16:03
-
-
Save rodcisal/ef3ebd544d5dd020d055e0b319c90656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useNameAndLastName = () => { | |
return { | |
name: 'Rodrigo', | |
lastName: 'Cisternas', | |
} | |
} | |
// const ln = useNameAndLastName(); | |
const name = useNameAndLastName().name; | |
const lastName = useNameAndLastName().lastName; | |
// const {name, lastName} = useNameAndLastName(); | |
console.log(name, lastName); | |
// const objectoConProps = useTracker(() => { | |
// susbscripcions..etc.. | |
// return ({ | |
// variable: 'Hola' | |
// }) | |
// }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment