title: Using createSelector with useSelector and a selector from another file whats the correct syntax?
body: <p>I have a selector setup in my reducer file, and in my react file I want to use useReducer and createSelector to call that selector only when part of the state (state.data) changes</p>
  <p>// Selector in reducer.js</p>
  <pre><code>const getScore = (state = initialState) =&gt; 
    Object.values(state.data).reduce(
      (score, { status }) =&gt;
        status === &quot;accepted&quot; ? score + 1 : 
        status === &quot;rejected&quot; ? score + 10 : 
        score, 0
    );
  </code></pre>
  <p>// Call from reactComponent.js</p>
  <pre><code>const score = useSelector(({ rejectionState }) =&gt; getScore(rejectionState));
  </code></pre>
  <p>What should the syntax for createSelector be and the changes to the syntax for useSelector ?</p>