Skip to content
@re4js

Re4

Re4

Minimal. Expressive. Compiler-first Javascript Framework docs

// counter.re
import { render } from "@re4/dom"

function hello() {
  console.log("Welcome re4!")
}

component Counter {
  state count: number = 0

  hello()

  return (
    <button onClick={() => count++}>
      Clicked {count}
    </button>
  )
}

render(Counter, document.getElementById("#app"))

Why re4?

🧠 New mental model — no useState, no hooks

⚡ Compiled — outputs direct DOM ops or glue code

🔌 Renderer-agnostic — works with DOM, Canvas, or custom targets

✍️ .re files with TypeScript+JSX syntax

🔬 Fine-grained reactivity — built-in state, computed, and effect

🚧🚧WIP🚧🚧 Core compiler, renderer, and tooling are being actively built. Stay tuned — this is just the beginning.

Popular repositories Loading

  1. .github .github Public

Repositories

Showing 1 of 1 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…