How useSelector
can trigger an update only when we want it to
A deep dive into the inner workings of a seemingly-impossible hook
When a react context updates, all components that use that context also update. This would cause huge performance issues if all…