Skip to content

Instantly share code, notes, and snippets.

@rodcisal
Created July 20, 2020 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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