DEV Community

joinstuff
joinstuff

Posted on

1

How to set another homepage for website build by React

I deployed one website on localhost , with npm build / react , and I would like to select another landing page .

However im a newbie working with React and I dont know where to find the routes for the pages . I have the following codes in the public/Index.html , public/manifest.json , and package.json from root folder.
I tried modifying the homepage in package.json to another folder/.ts/.tsx files but without any success..

Any idea in how to find the routes to other pages and how to set the landing page to them for localhost server ?

Top comments (0)

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay