Skip to content

Instantly share code, notes, and snippets.

@rodcisal
Created July 20, 2020 16:03
Show Gist options
  • Save rodcisal/ef3ebd544d5dd020d055e0b319c90656 to your computer and use it in GitHub Desktop.
Save rodcisal/ef3ebd544d5dd020d055e0b319c90656 to your computer and use it in GitHub Desktop.
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