mirror of
https://github.com/kennethnym/jrx.git
synced 2026-03-20 11:51:17 +00:00
Split JrxNode into JrxElement (concrete branded object) and JrxNode (JrxElement | null | undefined), mirroring React's ReactElement vs ReactNode pattern. Components can now return null/undefined to render nothing. - Rename isJrxNode to isJrxElement (deprecated alias kept) - Handle null-returning components in jsx/jsxs factories - Add tests for null/undefined returns, children filtering, render() rejection Co-authored-by: Ona <no-reply@ona.com>
4 lines
187 B
TypeScript
4 lines
187 B
TypeScript
export { render } from "./render";
|
|
export { isJrxElement, isJrxNode, JRX_NODE, FRAGMENT } from "./types";
|
|
export type { JrxElement, JrxNode, JrxComponent, RenderOptions } from "./types";
|