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

112
Vistas
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 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