title: how to input API info to react-plotly
body: <p>I looked through the docs and couldn't find where the API username and key should go in the React component.</p>
  
  <p>I have this for node:</p>
  
  <pre><code>const plotly = require('plotly')('username', 'API key')
  </code></pre>
  
  <p>what would the equivalent code be for React?</p>