ar
ar
TTCTheo's Typesafe Cult
Created by ar on 11/9/2023 in #questions
Standards for useNavigate and useRouter for creating npm package
I am making an npm package that I hope that both nextjs and react developers can use. In my package, i use useRouter to do a router.push to change routes. Is there a way people standardize this to support this functionality regardless of if someone uses React (like a Vite app) or NextJs?
4 replies