Getting ready

For this recipe, we need to install the uuid package to generate random IDs, as shown in the following code:

npm install uuid

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.