user-story
user-story copied to clipboard
refactored home.js using useReducer hook
Signed-off-by: Hrishikesh Agarwal [email protected]
Issue Number
fixes #30
Describe the changes you've made
I have added useReducer hook earlier there was useState hook being used for showing modal.
Describe if there is any unusual behavior (Any Warning) of your code(Write NA if there isn't)
NA
Additional context (OPTIONAL)
We can use store and remove useState where it is not required in the application.
Checklist
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] All new and existing tests passed.
- [x] The title of my pull request is a short description of the requested changes.