title: reactjs, sending props from one component to another
body: <p>I want to send props from component A to component B. How can I do it?
  By the way I'm using <code>react.lazy()</code>.</p>
  
  <pre><code>import React from 'react';
  
  const CustomerList = React.lazy(() =&gt; 
  import('./views/CustomerList/CustomerList'));
  const CustomerDebt = React.lazy(() =&gt; 
  import('./views/CustomerDebt/CustomerDebt'));
  const routes = [
    { path: '/', exact: true, name: 'Home page' },
    { path: '/customerlist', name: 'Debt list', component: CustomerList},
    { path: '/customerdebt', name: 'Customer Debt', component: CustomerDebt},
  </code></pre>