title: How to glob in React
body: <p>Is there a simple way (ie. library) in <strong>React</strong> that allows you to get all file paths with a certain pattern from a folder in the src (or public) directory?
  Something 'Reacty' like this?</p>
  <pre><code>    import Globber from &quot;glob-react&quot;
  
      function globbing () {
        return (Globber.glob(pattern='./folder/**/*.txt'))
      }
  </code></pre>
  <p>If not, what would be the simplest thing?</p>