⚡
Unified State API
One function for everything. state() handles local, global, and async state effortlessly.
Simpler, Faster, Unified. The next-generation UI framework.
import { state } from 'flexium/core'
function Counter() {
// Local state with unified API
const [count, setCount] = state(0)
return (
<button onclick={() => setCount(c => c + 1)}>
Count: {count}
</button>
)
}npm create flexium@latest my-app
cd my-app
npm run devOr add to existing project:
npm install flexium