aaP_mrpk8882 We have Technology called google. You can create Reactjs App but you cannot for 3 - 10 minutes search on google. There's stackoverflow or github or anything already asked this. Even you can ask ChatGPT how to deploy it.
If you ask about deploying your React App to aaPanel with Nginx, Since you can't / wont even try, then I'll try to provide you steps:
I. Node Version :
Install Nodejs on aaPanel. Recommended LTS Version. If you want to know what's version LTS is, you can refer on Nodejs Website
Go to Website menu -> Node Project -> Add Node Project
Follow steps in Add Node Project Form. Fill if required / needed. And don't fill if you dont need it
Upload your react app to folder you've been set in form
Voila, Now you can run your reactjs app
II. Nginx static version:
- Build your react app in your local pc
- Add website in Website menu -> php project -> Add site
- Follow steps in Add Site Form. Fill if required / needed. And don't fill if you dont need it
- Remember to setting nginx to rewrite all url to index.html
- Upload build / dist (compiled build) of react to folder you created
- Voila, you now can run your compiled build of react as static html
Remember to fix your nginx config if needed such as Rewrite url, handle error, etc.
Same login with apache