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

181
Views
Handling 'content' - attribute in TSX?

I am working on an application that makes use of schema.org. I have the following line:

<span itemProp="priceCurrency" content="EUR">€</span>

Based on the schema.org docs the content attribute is allowed.

Note that both RDFa and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.

However, I don't know how to fix this TS error: Property 'content' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>'

Grateful for any ideas!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This solved the TS-error:

declare module 'react' {
    interface HTMLAttributes<T> {
        // extends React's HTMLAttributes
        content?: string;
    }
}
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!