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
- Host: GitHub
- URL: https://github.com/tech-phantoms/kladi
- Owner: Tech-Phantoms
- License: mit
- Created: 2020-08-24T20:29:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T16:27:39.000Z (over 4 years ago)
- Last Synced: 2025-04-11T04:23:03.324Z (over 1 year ago)
- Topics: hacktoberfest, npm-package, react, state-management
- Language: JavaScript
- Homepage: https://tech-phantoms.github.io/kladi/
- Size: 866 KB
- Stars: 24
- Watchers: 1
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

## 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)