user-story icon indicating copy to clipboard operation
user-story copied to clipboard

refactored home.js using useReducer hook

Open codetheorem opened this issue 3 years ago • 0 comments

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.

codetheorem avatar Mar 11 '22 21:03 codetheorem