useSelector() Redux
With useSelector() , returning a new object every time will always force a re-render by default.
useSelector sets up a subscription to Redux. So whenever our Redux store does change this component function will be re - executed and we will get to ...
omarsaade.hashnode.dev1 min read