Last active
February 27, 2020 18:32
-
-
Save r3dm1ke/fcd15cd08fd6d52689f2cd42bd2bd81f 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
import React, {useEffect} from 'react'; | |
function App() { | |
useEffect(() => { | |
console.log('this will output when app loads'); | |
}, []); | |
return ( | |
<button onClick={console.log('this will output when button is clicked')}> | |
Click me | |
</button> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment