Created
January 13, 2018 09:57
-
-
Save Ibro/13b2f55b657b4f9b42ddf70dbc743977 to your computer and use it in GitHub Desktop.
Using React Router v4 with create-react-app - https://codingblast.com/react-router-create-react-app/
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
<Route path="/children" children={({match}) => { | |
if(match) { | |
return <h1>Children</h1>; | |
} | |
return null; | |
}} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment