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

551
Visualizações
Chrome developer tools , React component not showing component structure

I'm new to React and i made a simple React app.

class App extends React.Component {
state = {
    counter: 0
}
render() {
    return (
      <div>
        <h1>Hello!</h1>
      </div>
    );
 }
}



ReactDOM.render(<App />, document.getElementById('root'))

Output in browser seems to be okay.(React Element has been rendered and it's visible on browser)- DOM elements has been created but in developer tools in Bookmark Components App is shown with red triangle and you cannot see a structure of component created, hovering on triangle showing message:"This component is not running in strict mode.." enter image description here

Should be rather something like that(my tutor screenshot)

enter image description here

I added strict mode to component in Visual studio code ide (no result):

   <React.StrictMode>
      <div>
        <h1>Hello!</h1>
      </div>
  </React.StrictMode>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Hi use react developer Tools extension

https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en

about 4 years ago · Juan Pablo Isaza Relatório

0

You have to wrap it around your component causing the issue, not only around a div. There where you call your App component, probably from index.js?

  <React.StrictMode>
     <App />
  </React.StrictMode>

And remove all your filters from the settings to show the structure:

enter image description here

about 4 years ago · Juan Pablo Isaza 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