title: sharing javascript classes between nodejs server and react web client
body: <p>I have a few javascript classes that run in my node server that I wish to reuse inside my react web client.  The problem (i think) is that the node code uses <em>require</em> and <em>module.exports</em> syntax, but the client codebase uses <em>import</em> and <em>export</em>... and it doesn't look like I can mix the two.</p>
  
  <p>Is there a sensible way to include a few of these server-side classes in my client-side code without duplication?</p>
  
  <p>[EDIT] the issue I'm facing is isolated to reuse of code that contains module.export AND async methods. </p>