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

113
Visualizações
Electron with react

I have a react component in an electron app which is kind of like a status section at the bottom of the app. The functionality is to display the current connection status to a MySQL database.


function Connection() {
  return <small>Checking Status...</small>;
}

export default Connection;

Above is the basic version of the functional component. I was wondering if anyone knows if there is a way where I can make a normal js file where I connect to the database and display the connection status or should I use state for this section. Ideally, I want the status to be updated right when the app loads so I was wondering if that should be done using the preload file. If I go with this method, how would I go about modifying the functional component above with the status of the preload?

Thanks

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