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

251
Vistas
How to add copyright symbol in React component?

Im want to write copyright symbol in React component, but this doesnt work.

function Footer() {
  return (
    <footer>
      <p>&copy</p>
    </footer>
  );
}

<p>&copy</p> works in HTML online editor.

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

0

If you wrote what you had in HTML and ran it through a validator it would report:

Error: Named character reference was not terminated by a semicolon. (Or & should have been escaped as &amp;.)

Most HTML parsers perform a lot of error recovery. JSX is not so forgiving. The semi-colon on the end of a character reference is mandatory:

<p>&copy;</p>

Alternatively, just use a copyright sign directly:

<p>©</p>
about 4 years ago · Juan Pablo Isaza Denunciar

0

You can use &copy; for the copyright symbol in React component.

function Footer() {
  return (
    <footer>
      <p>&copy;</p>
    </footer>
  );
}
about 4 years ago · Juan Pablo Isaza Denunciar

0

use this tag it works event i used the same in HTML: &copy in JSX : © or direct ©

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