Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/nano_jsx/index.ts

🎯 SSR first, lightweight 1kB JSX library.
Latest
import * as nanoJsx from "https://deno.land/x/nano_jsx@v0.1.0/index.ts";

Classes

A useful Image component Add <Img lazy ..., to lazy load the img source Add <Img width="100" height="100" ..., to specify img element's size. Add <Img placeholder="src or element" ...., to prepare placeholder for img.

A simple Link component Add <Link prefetch ..., to prefetch the html document Add <Link prefetch="hover" ..., to prefetch the html document on hovering over the link element.

Variables

v
h

Returns the populated parent if available else one child or an array of children

Pass "this.props.route.path" to it.

Creates a new Task using setTimeout()

Creates a new Microtask using Promise()