@lynx-js/react / Fragment

函数: Fragment()

function Fragment(props: object): null | ReactElement<any, string | JSXElementConstructor<any>>

Lets you group elements without a wrapper node.

参数

范围类型
propsobject
props.children?ReactNode

返回

null | ReactElement<any, string | JSXElementConstructor<any>>

参阅

React Docs

Examples

import { Fragment } from 'react';

<Fragment>
  <td>Hello</td>
  <td>World</td>
</Fragment>
// Using the <></> shorthand syntax:

<>
  <td>Hello</td>
  <td>World</td>
</>

定义于

.pnpm/@types+react@18.3.28/node_modules/@types/react/ts5.0/index.d.ts:831

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。