Created
December 11, 2017 12:52
-
-
Save iuliaL/41ecfa0f46d269495455b5e2f32f43c7 to your computer and use it in GitHub Desktop.
React router v4: when I want to pass down props in a route to route children
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 SynopticRoute = ({ scissor, ...rest })=> { | |
return ( | |
<Route {...rest} render={(props)=> | |
<SynopticView scissor={scissor} {...props} /> | |
} /> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment