Hi I was wondering how to deal with anchor tag href routing.
Like in my SPA , I have link buttons leading to various parts of my app.
How do I route it based on href ?
I tried the jsfiddle example with href, its give me 404 error.
Hi,
recently i started getting warnings in console:
Warning: Please use require("history").createBrowserHistory instead of require("history/createBrowserHistory"). Support for the latter will be removed in the next major release.
Hi,
I've been using your project for some time.
It always worked fine.
I've been away from react for a time and have lately started a project.
I've updated all packages to the latest versions.
The base project template did not change.
After the package updates and a minor change from Router to BrowserRouter and From Switch to Paths, everything was running.
Now I'm working on a component where I try to implement push.
It works as expected, The store updates and the pathname changes with one minor difference.
There's no component change, as I've implemented a updateTick, I don't have to force update as react is constantly updating.
If I add to createBrowserHistory({forceReload:true}) everything starts working again. But as we know, reloads are not really permitted in single page apps.
What is going wrong with the package, what do I have to implement to make the BrowserRouter notice that the pathname has changed and another component should be loaded?
Thanks
[The mentioned template: https://github.com/PatrykSitko/react-template]
Looking to use it in shiny bling-bling new LitElement application, but last updates are in 2017 and there is no major version yet.
In what status is this project?
UPDATE:
Some article: An Introduction to the Redux-First Routing Model
Hello! I have tried to add this line of code to my store.js file: const history = createBrowserHistory();
But when I do, I get this error: Invariant Violation: Browser history needs a DOM
Any ideas, tips?