Is there a simple way (ie. library) in React 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?
import Globber from "glob-react"
function globbing () {
return (Globber.glob(pattern='./folder/**/*.txt'))
}
If not, what would be the simplest thing?