Skip to content

Missing very important step in this documentation for JSX syntax #2687

Description

@amitshahc

When I was trying to follow this documentation: https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx
all worked fine until I replaced native JavaScript to JSX.

The missing step is to replace the line:
ReactDOM.render(e(LikeButton), domContainer);
with
ReactDOM.render(<LikeButton />, domContainer);

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