Skip to content

ReactDom 书写格式修改 #11411

@liushuai512

Description

@liushuai512

默认情况下,React DOM将转义嵌入在JSX中的任何值,然后再渲染它们。因此,它确保您永远不会注入任何未明确写入应用程序的内容。在呈现之前,所有内容都将转换为字符串。这有助于防止XSS(跨站点脚本)攻击。

加粗的是需要改错的:ReactDOM中间不应该有空格

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions