React-router cheatsheet
React-router cheatsheet
React-router cheatsheet
ads via Carbon
Nesting
https://devhints.io/react-router 1/2
05/12/2024, 11:56 React-router cheatsheet
Navigation
React.createClass({
mixins: [ Navigation ], ...
})
this
.transitionTo('user', {id: 10})
.transitionTo('/path')
.transitionTo('http://...')
.replaceWith('about')
.makePath('about') // return URL
.makeHref('about') // return URL
.goBack()
https://devhints.io/react-router 2/2