This project is built to help understand how to push, delete and compare 3 or more products with React Hooks, Redux and tests with Jest.
-
Product Item:
- Each Item rendered from a JSON which can be compared with the others
-
Comapare Item Page:
- Product Added to this page for comparison and can be deleted to remove from comparison
To get you started you can simply clone the repository:
git clone https://github.com/Rajdeepc/compareProduct.git
You need git to clone the repository. You can get git from http://git-scm.com/.
A number of node.js tools is necessary to initialize and test the project. You must have node.js and its package manager (npm) installed. You can get them from http://nodejs.org/.
and install the dependencies
npm install
npm run lint
npm run build
npm test
To Run Locally Steps to follow:
npm start
git checkout master
from any folder in your localhttps://github.com/Rajdeepc/Compare-Products---React-Hooks.git
repositorygit pull origin master
to ensure you have the latest main codegit checkout -b the-name-of-my-branch
(replacingthe-name-of-my-branch
with a suitable name) to create a branch
- Follow the "Running locally" instructions
- Save the files and check in the browser
- Changes to React components in
src
will hot-reload - Changes to markdown files in
content
will hot-reload - If working with plugins, you may need to remove the
.cache
directory and restart the server
git add -A && git commit -m "My message"
(replacingMy message
with a commit message, such asFixed header logo
) to stage and commit your changesgit push my-fork-name the-name-of-my-branch
- Go to the Compare-Products---React-Hooks and you should see recently pushed branches.
- Follow GitHub's instructions.
- If possible, include screenshots of visual changes. A Netlify build will also be automatically created once you make your PR so other people can see your change.
If you like my work and if my product has helped you in your development please feel free to give a shoutout: