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

328
Views
React: Why HTML content is displayed with double quotes in Dev Tool (Elements)?

I'm build blog with Next.JS.

Why is HTML content displayed in double quotes in Chrome Dev Tools (Elements), when I pass text as children:

<h1>hello world tes {props.title}</h1>

Result:

enter image description here

And if I write the content inside dangerousSetInnerHTML, no double quotes:

<h1 dangerouslySetInnerHTML={{ __html: `hello world tes ${props.title}`}} />

Result:

enter image description here

Which is the best practice, is it "children" or "dangerousSetInnerHTML"?

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