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

219
Views
what is the functionality of "@jsx react.dom" adding in top of every file?

what is the functionality of:

 /** @jsx React.DOM */

I have seen this line is added on top of so many files in my current project but I am very confused why its added. :(

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Since React v0.12, there's no more /** @jsx React.DOM */, see here.

They call it "The @jsx Pragma". It was used to allow you to specific how the output of the React Transformer should look.

So, back in the days, when compiling JSX expressions to JavaScript, they defaulted to React.createElement() calls. But you could modify this behavior with the beginning /** @jsx React.DOM */ comment. The idea was to make the transform more generic and allow you to specific how the output should look.

Not anymore. The React team shares in their release v0.12 notes:

We have wanted to do this since before we even open sourced React. No more /** @jsx React.DOM */!. The React specific JSX transform assumes you have React in scope (which had to be true before anyway).

over 4 years ago · Santiago Trujillo 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!