Answer the question
In order to leave comments, you need to log in
Routing options for a server-less React app other than react-router and Next.js?
Hello everyone
What else is there for routing? React-router is like walking through a minefield and problems with deployment are constant (without a server, I repeat). For Next, you need to rewrite everything.
Thanks
Answer the question
In order to leave comments, you need to log in
I am using npm history library without any react route.
What it does is align the api for navigation across different browsers.
For example, you can get the current value in the address bar like this:
import createHistory from 'history/createBrowserHistory'
let history = createHistory()
let { pathname } = history.location
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question