Answer the question
In order to leave comments, you need to log in
How can React-router pass props to reload parent component?
there is such a react component
export class App extends Component {
render() {
return (
<div>
<Router history={hashHistory}>
<Route path="/" component={UserHome}>
<Route path="newPatient" component={NewPatient}></Route>
</Route>
</Router>
</div>
);
}
}
{this.props.children}
<Link to="newPatient">
<Button> Create a new Patient</Button>
</Link>
Answer the question
In order to leave comments, you need to log in
all in a bunch if you don't invest
<Route path="/" component={UserHome}>
<Route path="newPatient" component={NewPatient}></Route>
</Route>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question