Created
April 20, 2019 22:34
-
-
Save treyhuffine/c677ccb1e9b040a7020b254e491132d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 App = () => { | |
const [id, setId] = React.useState(42); | |
const handleIdChange = React.useCallback(newId => { | |
setId(newId); | |
}, []); | |
return ( | |
<div className="App"> | |
<LaunchList handleIdChange={handleIdChange} /> | |
<LaunchProfile id={id} /> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment