@impress/reactdeprecated

Modular state manager for React

Usage no npm install needed!

<script type="module">
  import impressReact from 'https://cdn.skypack.dev/@impress/react';
</script>

README

@impress/react

@impress/react logo

Modular state manager for React

npm npm type definitions npm bundle size build status code coverage

Install

npm i @impress/react

Basic Usage

import { useProvide } from "@impress/react";

class User {
  store = "John";
}

const UserNameEditor = () => {
  const user = useProvide(User);
  return (
    <input
      onChange={(e: any) => user.store = e.target.value}
      value={user.store}
    />
  )
};

Example on codesandbox

Introduction

Modular state manager for React. You can organize the code of your application by service-stores. Single instantiated classes with a store inside at any place of your app code.

  • Service-oriented and multistore architecture
  • Update view components only dependent of changed stores
  • Data flow instruments
  • Server side rendering (SSR)
  • Possibility to make separated modules
  • Minimal abstraction,
  • Lightweight (~2Kb)
  • Minimum init page CPU time
  • Designed by React hooks coding style

Documentation

Examples

License

Impress is MIT licensed.