API Reference

Crank.js is organized into several modules, each serving a specific purpose.

Core Module

@b9g/crank

The core module contains the fundamental building blocks for creating and rendering elements.

Async Module

@b9g/crank/async

Utilities for handling asynchronous components and lazy loading.

DOM Module

@b9g/crank/dom

Renderer for browser DOM environments.

HTML Module

@b9g/crank/html

Renderer for generating HTML strings (server-side rendering).

Standalone Module

@b9g/crank/standalone

Template tag functions for writing JSX-like code without a build step.

Edit on GitHub