title: In React: Module not found: Can't resolve 'react-lodable'?
body: <p>I am new to react.
  I am getting an error <strong>( Module not found: Can't resolve 'react-lodable' )</strong> while doing routing in my react app.</p>
  
  <p>Here is my code:</p>
  
  <p><strong>route.js:</strong></p>
  
  <pre><code>import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
  import React, { Component } from 'react';
  import Loadable from 'react-loadable';
  import './App.css';
  
  const Loading = () =&gt; &lt;div&gt; Loading... &lt;/div&gt;;
  
  const Home=Loadable({
      loader:()=&gt;import('./components/home-component/Home'),
      loading:Loading
  });
  
  const User=Loadable({
      loader:()=&gt;import('./components/user-component/User'),
      loading:Loading
  
  });
  
  class App extends Component {
    render() {
      return (
        &lt;Router&gt;
        &lt;Switch&gt;
            &lt;Route exact path="/" component="Home" /&gt;
            &lt;Route path="/user" component="User" /&gt;
        &lt;/Switch&gt;
    &lt;/Router&gt;
      );
    }
  }
  
  export default App;
  </code></pre>