Last active
December 23, 2019 05:28
-
-
Save Mayankgupta688/178c884ccf0dd853449ccac51c76c6ef 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
function useCustomHooks() { | |
let userName = "Mayank"; | |
let userDesignation = "Trainer"; | |
return [userName, userDesignation]; | |
} | |
function ApplicationComponent() { | |
const [name, designation] = useCustomHooks(); | |
return ( | |
<div> | |
<h1>User Name: {name}</h1> | |
<h2>User Designation: {designation}</h2> | |
</div> | |
) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment