Comparing version 2.1.7 to 2.1.8
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 2.1.8 | ||
* Improve React docs (by Nahum Zsilva). | ||
## 2.1.7 | ||
@@ -5,0 +8,0 @@ * Reduce `index`, `async` and `non-secure` size (by @polemius). |
{ | ||
"name": "nanoid", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "A tiny (137 bytes), secure URL-friendly unique string ID generator", | ||
@@ -31,4 +31,4 @@ "keywords": [ | ||
"config": "@logux/sharec-config", | ||
"version": "0.5.3" | ||
"version": "0.5.6" | ||
} | ||
} |
@@ -179,9 +179,8 @@ # Nano ID | ||
This is good code. `this.id` will be generated only once: | ||
This is good code. `id` will be generated only once: | ||
```jsx | ||
id = nanoid() | ||
render () { | ||
return <Item key={this.id}>; | ||
} | ||
const Element = () => { | ||
const [id] = React.useState(nanoid) | ||
return <Item key={id}> | ||
} | ||
@@ -188,0 +187,0 @@ ``` |
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
26367
398