Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

next router push state

import { withRouter } from 'next/router'

class About extends React.Component {
  // your Component implementation
  // retrieve them like this
  // this.props.router.query.name
}

export default withRouter(About)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #router #push #state
ADD COMMENT
Topic
Name
9+7 =