Hacker News new | ask | show | jobs
by root_axis 2318 days ago
That's a code smell. 99% of components in a project should rely on props.
1 comments

How does that play with Redux Hooks for example? https://react-redux.js.org/next/api/hooks

If you are using hooks in your components, you need the global store instance. To call this unit testing is too big a stretch for me.