title: Creating custom component library with object prefix in Reactjs
body: <p>I would like to create a separate object/class that contains all the React components instead of adding a prefix to each component. For example, I can have a button for that has my custom styling and functionality. </p>
  
  <p>For example BootStrap has  class but I would like to create another Button component that is prefixed with a object instead of making ProjectButton. </p>
  
  <p>I'm not good with javascript, so I need some guidance on how to do this. </p>
  
  <pre><code>class ProjectForm extends React.Component {
   &lt;Project.Button /&gt;         //javacript complains
   &lt;Button /&gt;                //works
  }
  
  class Project.Button extends React.Component {
  // ...
  }
  
  class Button extends React.Component {
  // ...
  }
  </code></pre>