title: How do I use Rellax.js with React?
body: <p>I am trying to use Rellax.js with React but am not able to understand how to use it. All I can find is <a href="https://www.npmjs.com/package/rellax#target-node" rel="noreferrer">https://www.npmjs.com/package/rellax#target-node</a>. In that link, they give this code.</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;div ref={ref =&gt; { this.rellaxRef = ref }}&gt;
    I’m that default chill speed of "-2"
  &lt;/div&gt;
  
  var rellax = new Rellax(this.rellaxRef)
  </code></pre>
  
  <p>How do I use that code with React hooks and what would the entire component look like. This is a very narrow view of the component.</p>