Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "lstate", | ||
"description": "A simple, super-efficient and small (just 1.2kb) global state for React/Typescript applications", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -18,6 +18,6 @@ [![Node.js CI](https://github.com/teintinu/lstate/actions/workflows/test.yml/badge.svg)](https://github.com/teintinu/lstate/actions/workflows/test.yml) | ||
import React from 'react'; | ||
import { createGlobalState, useGlobalState } from "./lstate"; | ||
import { createGlobalState, useGlobalState } from "lstate"; | ||
const sample = createGlobalState({ | ||
initial: {count: 1}, | ||
initial: {count: 0}, | ||
reducers: (setter) => ({ | ||
@@ -34,7 +34,8 @@ inc() { | ||
<h1>Testing lstate</h1> | ||
<h2>A simple, efficient and small (just 2kb) global state for React applications</h2> | ||
<h2>A simple, super-efficient and small (just 1.2kb) global state for React/Typescript applications</h2> | ||
<p>count: {count}</p> | ||
<button onClick={state.inc}>+</button> | ||
<button onClick={sample.inc}>+</button> | ||
</div> | ||
} | ||
``` | ||
[Click here to see a running demo](https://codesandbox.io/s/gallant-wind-ksplp?file=/src/state.ts) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39938
5