Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

back button next js

import { useRouter } from 'next/router'

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

  return <span onClick={() => router.back()}>Click here to go back</span>
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: get span text jquery 
Javascript :: react native scrollview full height 
Javascript :: React’ must be in scope when using JSX react/react-in-jsx-scope 
Javascript :: regular expression match text between quotes 
Javascript :: call function in javascript from html 
Javascript :: javascript set timeout 
Javascript :: link regex 
Javascript :: jest console.log 
Javascript :: how to go to next page on button click js 
Javascript :: express download file 
Javascript :: javascript multiline string 
Javascript :: get the value of css properties js 
Javascript :: infinite loop javascript 
Javascript :: get all local storage 
Javascript :: jquery remove element 
Javascript :: javascript generate 3 numbers 1 - 49 
Javascript :: exceljs read file 
Javascript :: get current date + 1 js 
Javascript :: javascript change div order 
Javascript :: update angular 
Javascript :: first letter tuUppercase 
Javascript :: js dynamic import js 
Javascript :: get largest number in array javascript 
Javascript :: mongoose find and update prop 
Javascript :: next js script tag 
Javascript :: Round off a number to the next multiple of 5 using JavaScript 
Javascript :: webpack set mode to development 
Javascript :: jquery external script 
Javascript :: jquery keep scroll position 
Javascript :: react onclick with event 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =