title: React: unique ID generation
body: <p>Can anyone suggest how I'd go about creating an ID-generating function in React?</p>
  
  <p>So far I've tried to get this to work through an uuid npm package <a href="https://www.npmjs.com/package/uuid" rel="nofollow noreferrer">https://www.npmjs.com/package/uuid</a>, </p>
  
  <pre><code>import uuidv4 from 'uuid'
  
      helpIdGenerator {
          const uuidv4 = require('uuid/v4')
      }
  </code></pre>
  
  <p>But it doesn't seem to work.</p>