Beginner to React.js but not to front end dev... or writing support documentation.
So, while just getting started on the Intro to React tutorial, I came across this comment, under the What is React? heading:
Most React developers use a special syntax called “JSX” which makes these structures easier to write. The <div /> syntax is transformed at build time to React.createElement('div').
I think that this ^ section be improved a bit in terms of clarity, especially for beginners—I looked at it and initially thought, "That <div /> syntax isn't familiar to me and doesn't even show up in the provided example!" Here's one approach that could be more readily understandable:
Most React developers use a special syntax called "JSX" which makes these structures easier to write. JSX allows for the use of standard HTML syntax (example: <div>content</div>) which is then transformed at build time to React.createElement('div').
Beginner to React.js but not to front end dev... or writing support documentation.
So, while just getting started on the Intro to React tutorial, I came across this comment, under the What is React? heading:
I think that this ^ section be improved a bit in terms of clarity, especially for beginners—I looked at it and initially thought, "That
<div />syntax isn't familiar to me and doesn't even show up in the provided example!" Here's one approach that could be more readily understandable: