![]() ![]() Searching in the web, they say to use BrowserRouter that wraps all the content, and to use the, and of course I've tried it, but still don't work.Īpp.js import React, from "react-router" and export default withRouter(MostraMaterie) inside the component that should be shown doesn't work. localhost/, this one always returns what I want. there is no child, except if I reload the page, in that case the page will normally render. React router dom changes url, does not render component i am using 'react-router': '5.2.1' and 'react-router-dom': '5.3.0', When I use history. Using React-router and it works fine while I'm clicking on link buttons, but when I refresh my. I'm making a ReactJS websites, the problem is that when the user click on a the URL location changes, but the whole webpage becomes black and inside the
0 Comments
Leave a Reply. |