Baca semua nama file folder di React

//For REACT
$ npm install --save list-react-files

import listReactFiles from 'list-react-files'
listReactFiles(__dirname).then(files => console.log(files))
Victorious Vendace