I followed a tutorial from Web Dev Simplified youtuber: How To Create An Advanced Shopping Cart With React and TypeScript.
Instead of using bootstrap and react-bootstrap, I used Tailwind CSS. I styled all the components on my own.
Vite requires Node.js version 14.18+, 16+. It is highly recommended to use nvm.
Clone the project
git clone https://github.com/EPourmo/shopping-cart.git
Go to the project directory
cd shopping-cart
Install all dependencies
npm install
Then run the script
npm run dev
- Shopping cart
- Custom hook (useLocalStorage)