4.2.2 • Published 4 years ago

babel-plugin-lamp-luwak v4.2.2

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

lamp-luwak

lamp-luwak logo

Modular state management for React

npm npm type definitions npm bundle size build status code coverage

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}
    />
  )
};

Example on codesandbox

Documentation

[russian] documentation.

Examples

License

Lamp Luwak is MIT licensed.

4.2.2

4 years ago

4.2.1

4 years ago

4.1.0

4 years ago

4.2.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago