An open API service indexing awesome lists of open source software.

https://github.com/tech-phantoms/kladi

Easy to use state management library for React
https://github.com/tech-phantoms/kladi

hacktoberfest npm-package react state-management

Last synced: over 1 year ago
JSON representation

Easy to use state management library for React

Awesome Lists containing this project

README

          


NPM
JavaScript Style Guide
Github License
![npm](https://img.shields.io/npm/dw/kladi?style=plastic)

## Install

```bash
npm install --save kladi
```

## Usage

```jsx
import { Provider, useGlobalState } from "kladi";

import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

ReactDOM.render(


,
document.getElementById("root")
);

const App = (props) => {
let [count, setCount] = useGlobalState("count", 0);

return (


{count}
{
setCount(count + 1);
}}
>
Press


);
};

```

## License

MIT © [Tech Phantoms](https://github.com/Tech-Phantoms/kladi/blob/master/LICENSE)