Technology

GitHub – lucialand/luciex: Simplistic state management

GitHub – lucialand/luciex: Simplistic state management

Simplistic state management

GitHub is where the world builds software

Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

Luciex

Introduction

Luciex is a simplistic state management library.

Luciex has a simple chainable interface making it as easy as possible to get right in.

Installation

$ npm install luciex
# Or with yarn
$ yarn add luciex

Try It Out

You can create a simple store (or as we call it, an atom) for a counter app in only a couple lines.

import { Atom } from 'luciex';

const counterAtom = new Atom(0);

const increase = (count: number) => count + 1;
const decrease = (count: number) => count - 1;

await counterAtom.dispatch(increase);
await counterAtom.dispatch(decrease);

About

Simplistic state management

Topics

Resources

License


You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.

Related Articles

Back to top button