Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!