Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda