1.0.3 • Published 8 months ago

ezistate v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

EziState

The Easiest state management for React/JavaScript Apps!!!

const initialUserState = { name: 'User 1' };
const userState = newEziState(initialUserState);

const UserComp = () => {
  const { state, setState } = useEziState(userState);

  const changeName = (event) => {
    setState(event.target.value);
  };

  return (
    <>
      <h1>{state.name}</h1>
      <input onChange={changeName} value={state.name}/>
    <>
  );
}
1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago