treble-hook
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "treble-hook", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Get hooked on simple subscribe-and-publish in ReactJS.", | ||
@@ -20,3 +20,3 @@ "main": "./lib/index.js", | ||
"repository": "https://github.com/igneous-systems/treble-hook", | ||
"author": "Ryan Howard <ryanhoward@igneoussystems.com>", | ||
"author": "Ryan Howard <rollercodester@live.com>", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -5,7 +5,5 @@ | ||
<h3> | ||
<i>Simple, lightweight state management library for ReactJS with zero dependencies, weighing in at just under 900 bytes (gzip).</i> | ||
<i>Simple, lightweight state management library for ReactJS with zero dependencies, weighing in at <a href="https://bundlephobia.com/result?p=treble-hook@latest">just under 900 bytes (gzip)</a>.</i> | ||
</h3> | ||
<br /> | ||
<h3 style={{ color: 'red' }}>IMPORTANT: Upgrading from v1 to v2 includes breaking changes; see API below for new interfaces.</h3> | ||
<br /> | ||
<div style="float:left;"> | ||
@@ -21,6 +19,11 @@ <a href="https://www.npmjs.com/package/treble-hook" rel="nofollow"><img src="https://img.shields.io/npm/v/treble-hook.svg?style=flat" alt="version"></a> | ||
<p></p> | ||
<br/> | ||
## Installation | ||
```diff | ||
- IMPORTANT: Upgrading from v1 to v2 includes breaking changes; see API below for new interfaces. | ||
``` | ||
<br/> | ||
# Installation | ||
`yarn add treble-hook` | ||
@@ -32,4 +35,6 @@ | ||
## Quick Start | ||
<br/> | ||
# Quick Start | ||
```jsx | ||
@@ -78,8 +83,12 @@ import trebleHook, { usePubSub } from 'treble-hook' | ||
## Live Examples on Codesandbox | ||
<br/> | ||
# Live Examples on Codesandbox | ||
- [Welcome](https://codesandbox.io/s/create-react-app-ts-mui-treblehook-f2tpp) (Quick Start example with Typescript + Material-UI) | ||
- Classic ToDo App (coming soon) | ||
- Crack that Code Game (coming soon) | ||
- [Classic ToDo App](https://codesandbox.io/s/treble-hook-todos-y7fr0) | ||
- Code Cracker Game (coming soon) | ||
<br/> | ||
# API | ||
@@ -108,2 +117,4 @@ | ||
<br/> | ||
## <ins>trebleHook.getPublisher()</ins> | ||
@@ -133,2 +144,4 @@ | ||
<br/> | ||
## <ins>usePubSub</ins> | ||
@@ -193,4 +206,6 @@ | ||
## Liscense | ||
<br/> | ||
# Liscense | ||
### MIT |
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
15342
205