Commit b9081a51 authored by Luc's avatar Luc Committed by Tim Neutkens

Replace deprecated `props.url` in examples (#4953)

Following https://github.com/zeit/next.js/pull/4952

I found two examples with the deprecated`props.url` :
- `with-ioc`
- `with-next-routes`
parent cf5dd4a0
export default props => <h1>About foo {props.url.query.foo} – no `Link` ({typeof props.Link}) available here</h1>
export default props => <h1>About foo – no `Link` ({typeof props.Link}) available here</h1>
export default props => <h1>About foo {props.url.query.foo}</h1>
import { withRouter } from 'next/router'
const About = ({router}) => <h1>About foo {router.query.foo}</h1>
export default withRouter(About)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment