Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

history.push in nextjs

import { useRouter } from 'next/router'

export default function Page() {
  const router = useRouter()

  return (
    <button type="button" onClick={() => router.push('/about')}>
      Click me
    </button>
  )
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: where to add "type": "module" in the package.json 
Javascript :: electron remove cors 
Javascript :: chart js title 
Javascript :: download canvas as image 
Javascript :: how to replace all characters in a string javascript 
Javascript :: us states js array 
Javascript :: update nodejs version in ubuntu 
Javascript :: select input by name javascript 
Javascript :: datatable remove show 
Javascript :: datatable default sorting 
Javascript :: react background image 
Javascript :: js code to generate random base64 code 
Javascript :: js localstorage boolean 
Javascript :: discord bot status javascript 
Javascript :: sleep in javascript 
Javascript :: check undefined object javascript one liner set to emtpy 
Javascript :: Add click event to querySelectorAll js 
Javascript :: set default version of node nvm 
Javascript :: adding event on enter key keypress in javascript 
Javascript :: how to wait foreach javascript 
Javascript :: javascript canvas touchmove 
Javascript :: How to make string shorter javascript 
Javascript :: react native display inline block 
Javascript :: jquery get base url 
Javascript :: boton de copiar en html y js 
Javascript :: javascript sort chars in string 
Javascript :: how to convert a string of numbers into an array javascript 
Javascript :: javascript random boolean 
Javascript :: ffmpeg/avconv not found 
Javascript :: mongodb add user 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =