Documentation

Getting Started

template

loading...

npm (with TypeScript)

loading...
loading...
loading...

deno

Get it from deno.land/x/nano_jsx and have a look at the deno example.

bundle (with Tagged Templates)

loading...

Lifecycle

If you extend from Component you will have willMount(), render() and didMount() and didUnmount().

If you use SSR, you should only manipulate the DOM inside didMount(), since didMount() will not get executed on the server-side.

Update/Re-render Component

Nano JSX does never update a component automatically. You have to call update() manually. On every component you call update(), the root element needs to be a DOM element or a Fragment of DOM elements.

Props

You can simply pass props to children as you are used to in other JSX libraries.

loading...

State and Store

State

loading...

Store

loading...

Context API

loading...

Fragment

loading...