Created
June 29, 2019 19:29
-
-
Save jsmanifest/e8a96e89205921c079edf41d253123f5 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 Parent = (props) => { | |
if (props.user && props.user.email) { | |
// Fire some redux action to update something globally that another | |
// component might need to know about | |
} | |
// Continue on with the app | |
return <Child {...props} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment