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

Nano JSX Logo

Lightweight 1kB JSX library.

Designed to build ultra fast Multi-Page Apps (MPAs), using isomorphic JavaScript. Written in TypeScript. Perfect for your next PWA.

NPM version gzip size GitHub last commit code style: prettier Codecov Node version


Getting Started

Demo App

Take a look at the demo app.
It’s hosted on a free heroku dyno, so it might take a while to spin up the server and load the app

Features

The best about Nano JSX is the small bundle size. It builds, although is sound crazy, bundles as small as svelte!

More Features

  • SSR
    Out of the box, very simple to use

  • Pre-Rendering
    Renders your app to static html if you want.
    (This is possible, but requires some knowledge.
    I plan to make a tutorial soon.)

  • Hydration
    Render your app on the server and hydrate it on the client

  • Partial Hydration
    Hydrate and only the parts you need

  • CSS in JS
    Use JavaScript objects for styling

  • No JSX build tools required
    Uses Tagged Templates instead of JSX if you prefer

  • Props, Ref, Context and Events
    Use Props, Ref, Context API and Events as you are used to in react

  • Inline SVG
    No problem

  • Prefetch
    Use the built-in Link Component

  • 1KB (gzip)
    All of this in only ~1KB
    (Well, the core module is only about ~1KB)

Documentation

Checkout the website to find out more!