title: How to fix "Module not found: Can't resolve 'react'"?
body: <p>I'm trying to get particlesjs to run in react. But that doesn't seem to work..So , I tried using react-particles-js .But it gives me this error:
  Module not found: Can't resolve 'react' in 'C:\Users\Amit\node_modules\particles-js\lib'</p>
  <pre><code>        import React, { Component } from 'react';
  
          import ParticleAnimation from 'particles-js';
  
           class Example extends Component {
              render () {
                 return (
                &lt;ParticleAnimation /&gt;
            )
          }
         }export default Example;
  </code></pre>
  <p>I've been trying to mess with the file path in the import statement but nothing has worked so far.</p>