Categories

Friday, November 22, 2024
#919814419350 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 19, MedusaJs, Next.js, 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.