Create a folder during file download in react js - reactjs

how do i download multiple files in a specific folder with a react app. Can i create a folder and download the files in that folder using react app?
kindly attach code

Related

How to use downloadable assets in electron react boilerplate

I developed app based on electron-react-boilerplate and now I want to lower package size by moving my video/audio assets to CDN to be downloaded on first run. Assets are downloaded to assets/ directory and this directory is added to extraResources. Now when I'm using import or require in react - it cant be compilled because in dev such files doesn't exists. How I should now import such downloadable assets in react?

Best way to add assets in React Project root folders?

I'm new to react js. I just created new React project add want to add my own assets folder where to define my local images.
Read the documentation of create-react-app where it says the Use of public folder
Good practice is to Create an assets folder inside src folder to add anything that is used when the app is compiled.

How to make an apk file downloadable from a react js website

I am having an apk file stored in a folder of my react js project src/asset/myapp.apk, I want to make it downloadable from my portfolio website. How can I achieve that?
Try putting your static files in public/ folder.
Then simply retrieve it by addressing "/path/to/file.apk"
When using src/ filename will be processed and changed relative to your webpack config which can vary each time you run a build which is not a good practice.
If you're using create-react-app read this documentation:
Using the Public Folder
Note: if you are using gatsby, please use static/ folder instead of public.

A react build folder when run using the serve package exposes the src files in the inspector

I ran the react build script and it has built the files into a build folder. However when I use serve (or any static file serve package), I am able to see the files from the src folder when I check the inspector. The react components files can be seen from the inspector.
The actual directory structure
The files in the chrome inspector
How can I solve this issue?

React.JS setup with Codeigniter

I'm planning to have Codeigniter and Reactjs for my new project,
I need to know how to setup the project folders and the build process
for the .jsx files to be .js and then all the .js files to be
concatenated and minified to be min.js and also using ES6 Style.
I am using NPM, please explain in details.

Resources