1.1.3 • Published 1 year ago

@solarfluxx/fold v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fold

Fold is a React state management library.

Install

// npm
npm install @solarfluxx/fold

// yarn
yarn add @solarfluxx/fold

Examples

Counter

import { atom } from '@solarfluxx/fold';

const countAtom = atom(0);

function Counter() {
  const count = countAtom.use();
  
  return (
    <div>
      <div>{ count }</div>
      <button onClick={() => countAtom.set(count => count + 1)}>Increment</button>
    </div>
  );
}
1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago