Great and clear explanation!
You are so true, each and every piece of example found online implies the switch part, making it somehow more difficult to understand the whole pattern.
This, combined with React context is for some time now, my everyday state-management solution. Simple and clear!
Thank you for clearing things up a little for everyone!
Greetings from Romania!
PS: this article should be in the official react.js documentation :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great and clear explanation!
You are so true, each and every piece of example found online implies the switch part, making it somehow more difficult to understand the whole pattern.
This, combined with React context is for some time now, my everyday state-management solution. Simple and clear!
Thank you for clearing things up a little for everyone!
Greetings from Romania!
PS: this article should be in the official react.js documentation :)