Replace deprecated `props.url` in readme (#4952)
Following https://github.com/zeit/next.js/pull/4950 Fix https://github.com/zeit/next.js/issues/4716 I'm not sure to understand this part, though : > Note: in order to programmatically change the route without triggering navigation and component-fetching, use `props.url.push` and `props.url.replace` within a component Is there a difference between : ```jsx export default () => <a onClick={() => Router.push('/about')}>About</a> ``` and ```jsx export default withRouter( () => <a onClick={() => props.router.push('/about')}>About</a> ) ``` ?
Showing
Please
register
or
sign in
to comment