Web / React native Interview questions
Does useSelector cause a re-render of the component?
Yes.When an action is dispatched, useSelector() will do a reference comparison of the previous selector result value and the current result value. If they are different, the component will be forced to re-render. If they are the same, the component will not re-render.
More Related questions...