Simple State Management

Tilia is a little library to help manage state in TypeScript and ReScript apps.


const vibing = connect({
  vibes: 'immaculate' 🌈
})

function ShowVibes() {
  useTilia()
  return <div>{vibing.vibes}</div>
}

function elevateVibes() {
  vibing.vibes = 'legendary' ✨
}

let vibing = connect({
  vibes: "immaculate" 🌈
})

@react.component
let make = () => {
  useTilia()
  <div>{React.string(vibing.vibes)}</div>
}

let elevateVibes = () =>
  vibing.vibes = "legendary" ✨

Why Developers Are Obsessed 🤯 (or not)

🚀 Lightning Fast

Performant AF!

No, really, we don't know, help us measure 😍

But we did our very best so that we can use it for games and highly interactive apps.

🤯 No Boilerplate

But we do provide some Functional Reactive Programming (FRP) helpers.

🌈 Type Safe

The library was written with a strong emphasis on helping to keep code safe (also during transitive states).