Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

router in next js

import { useRouter } from 'next/router';
const NavComponent = ({navItems,logo})=> {
const router = useRouter()
return (
     <div onClick={() => {
            router.push('/');
          }}
          className="h-auto transition cursor-pointer hover:scale-105"
        >
          <h4 className="text-2xl text-white uppercase font-neuro hover:text-secondary text-shadow">Straw Hats</h4>
        </div>
)}
Comment

PREVIOUS NEXT
Code Example
Javascript :: change navigation animation react native 
Javascript :: javascript dynamic arrays 
Javascript :: how to save and use item from local storage javascript 
Javascript :: how to round numbers in javscript 
Javascript :: make copy of date javascript 
Javascript :: how to check if exists in javascript 
Javascript :: increased the value of a counter when a button is clicked in js 
Javascript :: javascript variable with multiline text 
Javascript :: what is 5+5 
Javascript :: remove comma from string jquery 
Javascript :: make form submit on new tab using jquery 
Javascript :: js join 
Javascript :: dom element set id 
Javascript :: javascript onkeydown 
Javascript :: express router file 
Javascript :: state in constructor javascript 
Javascript :: set node_env in windows 
Javascript :: javascript currency format 
Javascript :: error metro bundler process exited with code 1 react native 
Javascript :: date masking javascript to not allow / 
Javascript :: how is javascript compiled 
Javascript :: perspective camera three js 
Javascript :: discord.js v13 if dm 
Javascript :: javascript execute powershell script 
Javascript :: what is normalize in javascript 
Javascript :: object flatten js 
Javascript :: how to poll efficiently in javascript 
Javascript :: user input in js 
Javascript :: how to make fake binary 
Javascript :: what is functional composition 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =