Skip to content

Bring back the "JSX Gotchas" doc #8998

@nylen

Description

@nylen

The following document was very useful: https://github.com/facebook/react/blob/v15.4.0-rc.3/docs/docs/02.3-jsx-gotchas.md#html-entities

However, it seems to have disappeared entirely in #7878 and v15.4.0, with no replacement.

I can't find anywhere in the current documentation that explains how and why React escapes HTML passed in by default. I was trying to explain this to someone today, and right now, it seems like this is something you "just have to know".

The other section about custom HTML attributes seems useful too.

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