Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
Changing the default main file "index.js" to some other file in react?

I have been thinking about the topic of changing the main file in react but I couldn't get through. Please, Can anyone explain whether can we change, if not then why.

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

If it is app.js you can change any file to render a root id div in react app

about 4 years ago · Santiago Trujillo Report

0

If you want to change app.js you can change the following line in index.js file

ReactDOM.render(
  <React.StrictMode>
    <App /> // Change To Your Default File
  </React.StrictMode>,
  document.getElementById('root')
);
about 4 years ago · Santiago Trujillo Report

0

I assume you are referring to create-react-app. In which case the answer is no: https://create-react-app.dev/docs/folder-structure.

You can always eject a create-react-app, but IMO it is not really worth it unless you need some really specific configuration.

Keep in mind that you don't have to use create-react-app to use react proper. If you use react by itself, you can apply any organization you wish.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!