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

246
Vistas
How to read from a text file and change text of a react element?

I have this website I am working on and I have a snippet of code like this;

<div data-layer="0e50f80e-132b-476b-b316-3a8b6a4593e6" className="item1Title">Item 1 Title</div>

I want to be able to change the title of the object without hardcoding every change, it would be great if I could read the title from a text file in case I need to change and update content. But this solution would be great also if it allows me to change it from a parent component instead of hard coding that change into the file. (I use a program that helps autogenerate some jsx and I don't want to have to redo a bunch of work every time!)

Thanks for your help!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

you cannot access to files from reactjs you need to call an api or you need to launch a service nodejs ( Socket IO ) you can use to read/Write files

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