Skip to content

Suggestion for Intro to React tutorial, where JSX is mentioned #3529

Description

@christiang

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').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions