# react-unique-key

> It would offer you some unique keys for React Component

Latest version **0.0.2** (published 2019-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-unique-key
pnpm add react-unique-key
yarn add react-unique-key
bun add react-unique-key
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-08-26 |
| First published | 2019-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chenchao17@58.com |
| Maintainers | chenchao17 |
| Keywords | operation, utils |

## Links

- npm: https://www.npmjs.com/package/react-unique-key
- Repository: https://github.com/liuding-Jason/react-unique-key
- Homepage: https://github.com/liuding-Jason/react-unique-key#readme
- Issues: https://github.com/liuding-Jason/react-unique-key/issues
- npm.io page: https://npm.io/package/react-unique-key

## Dependencies (6)

- [cross-env](https://npm.io/package/cross-env.md) ^5.2.0
- [babel-core](https://npm.io/package/babel-core.md) 6.26.0
- [babel-loader](https://npm.io/package/babel-loader.md) 7.1.2
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^4.2.1
- [react-pure-check](https://npm.io/package/react-pure-check.md) ^0.1.3
- [function-com-utils](https://npm.io/package/function-com-utils.md) ^0.0.5

## Recent versions

- 0.0.2 (latest) — 2019-08-26
- 0.0.1 — 2019-07-30

## README

## react-unique-key

	`react-unique-key` would offer you some unique keys for React Component , to avoid 
	error in array.map's render . 

	I overcame this function in Array.prototype object in this module . So when used , 
	you only need to import this package in your entry pointer .

-----------

####	Use Pattern :
```js
	import React , { Component } from "react" ;
	import "react-unique-key" ;
	class Test extends Component{
		constructor(){
			super();
			this.state = {
				list : [{a , 1} , {a : 2} , {a : 3}] 
			}
		}
		render(){
			return (
				<div>
					{
						this.state.list.uniqueMap((item , index) => {
							return <p key={item['unique_key']}>index</p>
						})
					}
				</div>
			)
		}
	}

```
## LINCESE
	
	MIT

---
_Source: https://npm.io/package/react-unique-key · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
