Skip to main content

React 节点对象类型

React Node 是以下类型之一:

¥A React Node is one of the following types:

  • 布尔值(被忽略)

    ¥Boolean (which is ignored)

  • nullundefined(被忽略)

    ¥null or undefined (which is ignored)

  • 数字

    ¥Number

  • 字符串

    ¥String

  • React 元素(JSX 的结果)

    ¥A React element (result of JSX)

  • 上述任一数组,可能是嵌套数组

    ¥An array of any of the above, possibly a nested one