You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React and Preact both have "Fragment" components, which don't render any wrapper tags but simply delegate rendering to their children. This makes components more composable in contexts where tags have a nesting context (e.g. <li> must be a direct descendant of a <ol> or <ul>).
Unfortunately the TypeScript compiler does not support a custom pragma for React's <></> fragment syntax yet, though this is on track for release soon (see microsoft/TypeScript#38720), but we can provide a Fragment component in the meantime e.g. <Fragment><li>1</li></Fragment>.
The text was updated successfully, but these errors were encountered:
React and Preact both have "Fragment" components, which don't render any wrapper tags but simply delegate rendering to their children. This makes components more composable in contexts where tags have a nesting context (e.g.
<li>
must be a direct descendant of a<ol>
or<ul>
).Unfortunately the TypeScript compiler does not support a custom pragma for React's
<></>
fragment syntax yet, though this is on track for release soon (see microsoft/TypeScript#38720), but we can provide aFragment
component in the meantime e.g.<Fragment><li>1</li></Fragment>
.The text was updated successfully, but these errors were encountered: