kladi

1.1.4 • Public • Published

NPM JavaScript Style Guide Github License npm

Install

npm install --save kladi

Usage

import { Provider, useGlobalState } 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] = useGlobalState("count", 0);
 
  return (
    <div>
      {count}
      <button
        onClick={() => {
          setCount(count + 1);
        }}
      >
        Press
      </button>
    </div>
  );
};
 

License

MIT © Ninja-Developers

Readme

Keywords

none

Package Sidebar

Install

npm i kladi

Weekly Downloads

0

Version

1.1.4

License

MIT

Unpacked Size

16.2 kB

Total Files

8

Last publish

Collaborators

  • vinitshahdeo
  • souvik210899
  • imabp