DEV Community

Discussion on: Create a Todo App with React Hooks and LocalStorage

Collapse
 
ducdev profile image
Duc Le • Edited

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
Enter fullscreen mode Exit fullscreen mode

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!

Collapse
 
urielbitton profile image
Uriel Bitton

awesome thanks a lot dude!