UNPKG

@dark-engine/core

Version:

The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)

7 lines (6 loc) 379 B
import { component, detectIsComponent } from '../component'; const $$fragment = Symbol('fragment'); const Fragment = component(({ slot }) => slot || null, { token: $$fragment, displayName: 'Fragment' }); const detectIsFragment = instance => detectIsComponent(instance) && instance.token === $$fragment; export { Fragment, detectIsFragment }; //# sourceMappingURL=fragment.js.map