5
React Router kullanarak bir sayfayı yeniden yönlendirmenin en iyi yolu nedir?
React Router'da yeniyim ve bir sayfayı yeniden yönlendirmenin pek çok yolu olduğunu öğrendim: Kullanma browserHistory.push("/path") import { browserHistory } from 'react-router'; //do something... browserHistory.push("/path"); Kullanma this.context.router.push("/path") class Foo extends React.Component { constructor(props, context) { super(props, context); //do something... } redirect() { this.context.router.push("/path") } } Foo.contextTypes = { router: React.PropTypes.object } …
115
reactjs
redux
react-router