Categories

Thursday, August 18, 2022
therichposts@gmail.com
Reactjs

Solved – Reactjs Blank Screen after Build Upload on Server

Solved - Reactjs Blank Screen after Build Upload on Server

Hello guys welcome back on my blog. Today in this post I am going to tell you Solved – Reactjs Blank Screen after Build Upload on Server.

Solved - Reactjs Blank Screen after Build Upload on Server
Solved – Reactjs Blank Screen after Build Upload on Server

Guys to solved reactjs blank screen issue after build just follow the below two things:

1. Add below code into your project package.json file:

"homepage": "https://yourhomepageurl",

2. After importing react-router-dom add below attribute ( HashRouter ) as well:

...
import {
  HashRouter as
  BrowserRouter,
  Routes,
  Route,
} from "react-router-dom";
....

 

For reactjs new comers, please check the below link:

Reactjs Basic Tutorials

I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad.

Jassa

Thanks

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 7, Angular 8, Angular 9, Angular 10, Angular 11, Angular12, Angular 13, Angular 14, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.