An open API service indexing awesome lists of open source software.

https://github.com/rkrupinski/stan

Minimal, type-safe state management
https://github.com/rkrupinski/stan

react state-management typescript

Last synced: 5 months ago
JSON representation

Minimal, type-safe state management

Awesome Lists containing this project

README

          

[![](packages/website/static/img/logo.svg)](https://stan.party)

# Stan

[![CI](https://github.com/rkrupinski/stan/actions/workflows/ci.yml/badge.svg)](https://github.com/rkrupinski/stan/actions/workflows/ci.yml)
![NPM Version](https://img.shields.io/npm/v/@rkrupinski/stan)
![Bundle size](https://img.shields.io/bundlejs/size/@rkrupinski/stan)

Minimal, type-safe state management

[🌐 Website](https://stan.party)   |  
[📘 API docs](https://stan.party/docs/api/state)   |  
[📝 Examples](https://stan.party/docs/getting-started/examples)   |  
[📰 Blog Post](https://rkrupinski.com/post/introducing-stan)

A sneak peek:

```tsx
import { selectorFamily } from "@rkrupinski/stan";
import { useStanValue } from "@rkrupinski/stan/react";

const deepThought = selectorFamily(
(question) => () => thinkDeep(question)
);

const MyApp: FC<{ question: string }> = ({ question }) => {
const answer = useStanValue(deepThought(question));

return (


The Answer to "{question}" is "{answer}"!


);
};
```