open-index/open-npm huggingface dataset:
npm package: @js-minified/data
Description: Implements a basic array store with unique ID accessors.
Author: Manel Castro
Latest version: 1.0.8

Implements a very basic store with data accessors with a minimum bundle size of less than 5kb. It mainly implements unicity for a given ID.

Work in progress:

- Support for non-unicity

Options:

- Namespace

Components to use:

```TS
setData({
  id,
  data,
  options = { leading: false, namespace: "" },
})

getData({ id })

deleteData({ id })
```

You need to provide a id parameter for store management.

All the library includes type declarations, but functions are self-explanatory for plain JS.
npm package: @js-minified/store
Description: Implements the most basic functionality of react-redux store but in Vanilla JS.
Author: Manel Castro
Latest version: 1.0.31

Implements the most basic functionality of react-redux store but in Vanilla JS.

Components to use:

It can be easily integrated in React, example:

```JSX
import React, { useState } from "react";
import { onStoreChanged,updateState  } from "@react-mini/redux";

export const Home = () => {
  const propertyName = "buttonClick";
  const [buttonState, setButtonState] = useState(false);

  onStoreChanged({
    propertyName,
    callback: (data) => setButtonState(data),
  });

  return (
    <div>
      <input
        type="button"
        onClick={() =>
          updateState({
            value: !buttonState,
            propertyName,
          })
        }
        value={`${buttonState}`}
      ></input>
    </div>
  );
};
```