JSPM

reactjs-id

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 90
  • Score
    100M100P100Q56059F
  • License MIT

A function that generates unique identifiers which can be used when mapping through list of items in React.Js

Package Exports

  • reactjs-id
  • reactjs-id/src/React-Id.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reactjs-id) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ReactId is a function that generates unique identifiers which can be used when mapping through list of .items in React.Js.

How to Install:

Run npm install reactjs-id in your CLI

How do I use ReactId in my project?

  • Simply import {ReactId} from "reactjs-id";
  • Next, invoke ReactId() in the component you need it. This could be your list component, for instance: `let mappedDessert = desserts.map(desert =>
  • {desert.name} - {desert.calories} cal
  • )`