4.2.2 • Published 4 years ago
babel-plugin-lamp-luwak v4.2.2
lamp-luwak
Modular state management for React
Introduction
Multistore state management with service ideology and module architecture for React. You can organize the code of your application by service-stores. Single instantiated instances of classes or function factory with a store inside at any place of your app code.
- Service-oriented and multistore architecture
- Update view components only dependent of changed stores
- Server side rendering (SSR)
- Lightweight (~2Kb)
- Designed by React hooks coding style
- TypeScript supported
Install
npm i lamp-luwak
Basic Usage
import { useProvide } from 'lamp-luwak';
class User {
store = 'John';
}
const UserNameEditor = () => {
const user = useProvide(User);
return (
<input
onChange={(e) => user.store = e.target.value}
value={user.store}
/>
)
};
Documentation
[russian] documentation.
Examples
License
Lamp Luwak is MIT licensed.