@b9g/crank
The core Crank.js module containing all fundamental APIs for creating and rendering elements.
Installation
npm install @b9g/crank
Functions
- createElement - Creates a Crank element
- cloneElement - Clones an existing element
- isElement - Checks if a value is a Crank element
Classes
- Element - The element class representing virtual DOM nodes
- Context - The context object passed to components
- Renderer - Base class for creating custom renderers
Interfaces
- RenderAdapter - Interface for implementing custom rendering targets
Types
- Tag - Union type for valid element tags
- Child - Type for a single child value
- Children - Type for children including nested iterables
- Component - Type for component functions
- ElementValue - Type for rendered element values