Relative Content

Tag Archive for reactjsreact-router

React app showing white blank page after build

I am using browser router for managing routes in my react app everything works perfect until I build the folder. when I build it, shows white blank page with no errors in console. I already added homepage route in packgae.json file still nothing happens, but when I use hash router instead of browser router everything works as expected but this is not good for production.

React: Using custom routes

I have inherited a project where i might have a URL that looks like this:http://localhost:8080/somepath/#react:prt1/prt2?param1=77

Props are not available when accessing React Router link

When I start the app on localhost, then the props are available after I access an URL which is defined by React Router.
But when I deploy the app, the props are not available and therefore the page is empty.
Do you know, please, what can be the reason for such behavior?