Leia todos os nomes de arquivos da pasta no React
//For REACT
$ npm install --save list-react-files
import listReactFiles from 'list-react-files'
listReactFiles(__dirname).then(files => console.log(files))
Victorious Vendace