File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1- import { Activity as BaseActivity , Suspense as BaseSuspense } from 'react'
1+ import { Fragment as BaseFragment , Activity as BaseActivity , Suspense as BaseSuspense } from 'react'
22import { createNode } from '@src/core.node.js'
33
4+ /**
5+ * A container that does not render any extra DOM element.
6+ * @see {@link https://react.dev/reference/react/Fragment React Docs }
7+ * @example
8+ *
9+ * ```typescript
10+ * import { Fragment, Div, Span } from '@meonode/ui';
11+ *
12+ * Fragment({
13+ * children: [
14+ * Div('First Div'),
15+ * Span('A Span inside Fragment'),
16+ * Div('Second Div'),
17+ * ],
18+ * })
19+ * ```
20+ */
21+ export const Fragment = createNode ( BaseFragment )
22+
423/**
524 * Lets you hide and restore the UI and internal state of its children.
625 * @see {@link https://react.dev/reference/react/Activity React Docs }
You can’t perform that action at this time.
0 commit comments