For example
<Route
path="/create-profile"
render={({ history }) => (
<CreateProfile
account={account}
setProfileId={this.setProfileId}
history={history}
/>
)}
/>
History can be provided by withRouter, and it should render the logged out page rather than the component if there is no user, rather than making the component handle that.
For example
History can be provided by
withRouter, and it should render the logged out page rather than the component if there is no user, rather than making the component handle that.