@shopify/react-hooks
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -10,4 +10,6 @@ # Changelog | ||
## [1.0.1] - 2019-04-17 | ||
### Added | ||
- `@shopify/react-hooks` package with initial hooks for `useTimeout` and `useOnValueChange` ([#609](https://github.com/Shopify/quilt/pull/609)) |
{ | ||
"name": "@shopify/react-hooks", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A collection of primitive React hooks.", |
@@ -20,3 +20,3 @@ # `@shopify/react-hooks` | ||
``` | ||
```tsx | ||
function MyComponent({foo}: {foo: string}) { | ||
@@ -35,3 +35,3 @@ useOnValueChange(foo, (newValue, oldValue) => { | ||
``` | ||
```tsx | ||
function MyComponent() { | ||
@@ -38,0 +38,0 @@ const [foo, setFoo] = React.useState('Bar'); |
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
4185