Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda