title: Getting elements by className in a React Function Component
body: <p>For class Components in React, I could use</p>
  <p><code>ReactDOM.findDOMNode(&lt;instance-of-outermost-component&gt;).getElementsByClassName('snap')</code></p>
  <p>to get all the elements with className <code>snap</code>, but It doesn’t work with function components. How can I get all the elements with the same Classname in function components?</p>