title: Passing props to dynamically loaded components
body: <pre><code>export const Menus = {
      user1: {
          userMenu: &lt;User1Menu /&gt;
      },
      user2: {
          userMenu: &lt;User2Menu /&gt;
      }
  };
  
  
  
  render() {
  ...
  // I want to pass props to &lt;User1Menu /&gt; ?
  {Menus[user1].userMenu}
  }
  </code></pre>
  
  <p>I have such a situation where I have to pass props to components dynamically. I tried <code>withProps() from recompose</code> but no luck.</p>
  
  <p>Any help would be appreciated
  Thanks</p>