5.2.1 • Published 2 years ago

@destinio/id v5.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

ID

Super simple ID gen

  • the ID is broken into two part
    • date the id was created
    • random number defaulted to 100000

Example

import id from '@destinio/id'

array.map((item) => {
  const keyId = id() // 1625502956169-14374
  return (
    <div className="list-item" key={keyId}>
      I'm a list item that need a unique key
    </div>
  )
})

Cheers

4.1.3

2 years ago

5.2.1

2 years ago

0.2.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago