Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill Redux steps: #2

Open
loia5tqd001 opened this issue Nov 7, 2021 · 0 comments
Open

Kill Redux steps: #2

loia5tqd001 opened this issue Nov 7, 2021 · 0 comments

Comments

@loia5tqd001
Copy link
Owner

  • Clone with-redux-app
  • Add .prettierrc
  • Separate into multiple components
  • Before refactoring: Run test: Test passed 100%
  • Convert code to toContextHook
  • Run test: Test failed
  • Wrap ContextHookProvider around test
  • Run test: Test passed 100%
  • How about dividing the AddAmount component into smaller components? -> With Redux it's fucked, but with toContextHook I'll simply extract the state into a separate hook
  • Run test: Test passed 100%
  • Congratulations
  • Hold on, let me write performance test to see if Redux can be better -> Conclusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant