import Link from 'next/link' import { Component } from 'react' import Router from 'next/router' let counter = 0 const linkStyle = { marginRight: 10, } export default class extends Component { increase() { counter++ this.forceUpdate() } visitQueryStringPage() { const href = { pathname: '/nav/querystring', query: { id: 10 } } const as = { pathname: '/nav/querystring/10', hash: '10' } Router.push(href, as) } render() { return (
About Empty Props Self Reload Shallow Routing Redirect QueryString Replace state As Path As Path (No as) As Path (Using Router) An element with onClick An element with target

This is the home.

Counter: {counter}
Scroll to hash Scroll to CJK hash
) } }