r/reactjs • u/gaearon React core team • Sep 22 '20
News Introducing the New JSX Transform
https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html46
u/swyx Sep 22 '20
got to say, just reading the RFC exposes the sheer amount of thoughtfulness and complex considerations underlying all this. i'm glad i dont have to think about any of this. thanks for taking care of all this, core team.
4
u/dance2die Sep 22 '20
Great open source work folks in RFC (https://github.com/reactjs/rfcs/pull/107).
And this rid the need to answer "why do we import React from 'react' though no 'React' is used?" :)
2
Sep 22 '20
Curious, what is the purpose of this? Is this intended for JSX to become the standard in the Javascript community?
6
u/dance2die Sep 22 '20
To "Curious, what is the purpose of this?"
This proposal simplifies how React.createElement works and ultimately lets us remove the need for forwardRef.
Is this intended for JSX to become the standard in the Javascript community?
Devs will speak. No idea
4
u/swyx Sep 22 '20
it leaves the door open for JSX to become standardized, but for the record even sebastian himself has expressed doubts about whether this is wise. chances are it will never happen.
1
u/aclave1 Sep 22 '20
Thanks for sharing, Dan. And thanks to the React team for your excellent work in improving the usability of the framework!
14
u/[deleted] Sep 22 '20
forwardref is gone? πthat will make useImperativeHandle a joy to use.