0.0.6 • Published 2 years ago

nsus v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NSUS

npm npm GitHub stars GitHub forks GitHub issues GitHub issues

Next generation State management library to replace UseState.

Npm / Yarn

npm i nsus

yarn add nsus

Getting started

Requirement

  • esNext
  • React Hook

Example

Javascript

import useData from "nsus";

const app = () => {
  const state = useData({ count: 0 });
  return <button onClick={() => state.count++}>{state.count}</button>;
};

Typescript

// Same code, support Typescript.
import useData from "nsus";

const app = () => {
  const state = useData({ count: 0 });
  return <button onClick={() => state.count++}>{state.count}</button>;
};

This library is inspired by Vuejs. I hope that two-way data binding is possible even in react.

Features

  • Direct state change via proxy.
  • Automatic dom Reconciliation.

Update

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

example:) v0.0.18 is
18th patched.

Updated New Version

not thing

Update Scheduled

Tell me what you need? issue

Examples

This is Example boilerplate code.
You can get better way.