The downside I see replacing Redux is you will lose the debug tools that comes with Redux which are very handy, but for small-medium projects maybe it's the best solution.
I help companies with creating better web applications. Certified Level 3 Personal trainer, nutrition geek and biohacker, trained barista and (very) amateur photographer.
Location
London
Work
Principal JavaScript Developer and Team Lead - Director @ Finiteloop
Thanks!
You're right, to some extent you can debug React Hooks and see what the state looks like, but you don't get the nice actions debug/log and the timeline (not unless a bit of development).
I guess it can be ok with small projects as you say, with bigger ones the number of actions and interactions may require better debugging.
I help companies with creating better web applications. Certified Level 3 Personal trainer, nutrition geek and biohacker, trained barista and (very) amateur photographer.
Location
London
Work
Principal JavaScript Developer and Team Lead - Director @ Finiteloop
I help companies with creating better web applications. Certified Level 3 Personal trainer, nutrition geek and biohacker, trained barista and (very) amateur photographer.
Location
London
Work
Principal JavaScript Developer and Team Lead - Director @ Finiteloop
I help companies with creating better web applications. Certified Level 3 Personal trainer, nutrition geek and biohacker, trained barista and (very) amateur photographer.
Location
London
Work
Principal JavaScript Developer and Team Lead - Director @ Finiteloop
I help companies with creating better web applications. Certified Level 3 Personal trainer, nutrition geek and biohacker, trained barista and (very) amateur photographer.
Location
London
Work
Principal JavaScript Developer and Team Lead - Director @ Finiteloop
Great article!
The downside I see replacing Redux is you will lose the debug tools that comes with Redux which are very handy, but for small-medium projects maybe it's the best solution.
Thanks!
You're right, to some extent you can debug React Hooks and see what the state looks like, but you don't get the nice actions debug/log and the timeline (not unless a bit of development).
I guess it can be ok with small projects as you say, with bigger ones the number of actions and interactions may require better debugging.
just FYI, when working with providers make sure the child is a pure component (if its functional that means it's wrapped in React.memo)
Hi,
thanks for your comment, could you please elaborate on that?
Thanks!
Let me borrow some credibility
That makes sense now, thanks!
awesome guide! love it!
Thank you for the article! This is a new fresh look at old problems and an option to solve them.
Glad you found it useful Daniil.
Great article. Got a nice refresh of context API. Thanks
Thanks Arman