If you're using create-react-app to initialized the React project's code or the build command is already configured in your project's package.json, you can run:
npm run build
or
yarn build
Locate to your build (sometimes it's different locations depends on how you configured) directory, you will see the production optimized code there. All you need to do is compress the content of this directory and uncompress on your web hosting's home dir, and it should work.
If you're using
create-react-app
to initialized the React project's code or thebuild
command is already configured in your project'spackage.json
, you can run:Locate to your
build
(sometimes it's different locations depends on how you configured) directory, you will see the production optimized code there. All you need to do is compress the content of this directory and uncompress on your web hosting's home dir, and it should work.Hope it helps!
awesome thanks a lot dude!