Skip to content
/ FunE Public

Build scalable web pages with declarative functions.

Notifications You must be signed in to change notification settings

intzaaa/FunE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FunE

Functional Element

Forget about boring objects and HTML. Build scalable web pages with declarative functions.

Example

Counter

import { E, signal } from "fune";

export const Counter = () => {
  const count = signal(0);
  const increase = () => (count.value = count.value + 1);
  const decrease = () => (count.value = count.value - 1);

  return E("div", {}, [
    E("h1", {}, ["Counter"]),
    E("p", {}, ["Count: ", count]),
    E("button", { onclick: increase }, ["Increment"]),
    E("button", { onclick: decrease }, ["Decrement"]),
  ]);
};

About

Build scalable web pages with declarative functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published