kladi

Easy to use state management library for React

View on GitHub

KLADI (Development Version)


NPM JavaScript Style Guide Github License

Install

npm install --save kladi

Usage

import { Provider, useState } from "kladi";

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

ReactDOM.render(
  <Provider>
    <App />
  </Provider>,
  document.getElementById("root")
);

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

  return (
    <div>
      {count}
      <button
        onClick={() => {
          setCount(count + 1);
        }}
      >
        Press
      </button>
    </div>
  );
};

License

MIT © Ninja-Developers an Open Source Initiative of Tech Phantoms