title: require in client side implementation isomorphic javascript with react not recognized
body: <p>I was following this <a href="https://strongloop.com/strongblog/node-js-react-isomorphic-javascript-why-it-matters/" rel="nofollow">simple tutorial</a> on how to implement an isomorphic javascript app using node.js and react. The server side rendering is clear to me since it is just rendering the component to a string. </p>
  
  <p>However, I do not understand how I could attach the functionality defined in the components on the client side. The tutorial has the following content inside the <code>main.js</code> file:</p>
  
  <pre><code>var React = require('react');
  var ReactApp = require('./components/ReactApp');
  
  var mountNode = document.getElementById("react-main-mount");
  
  React.render(new ReactApp({}), mountNode);
  </code></pre>
  
  <p>But this uses the require function, and simple including the script inside the html, like the tutorial does, gives an error since this require function cannot be used.</p>
  
  <p>It is really frustrating how all the tutorials I can find are about the server side rendering of these components, but seem to ignore how on the client side one also could include the react component. Is it really that obvious and am I missing something really simple?</p>
  
  <p>Thanks for your help.</p>