src/__tests__/withAsyncReducer.test.js
// Create a component that dispatch an action on mount
Create a component that dispatch an action on mount
Create a component that dispatch an action on mount
function NewTestComponent({ receiveTestReducers, reducerName }) {
      useEffect(() => {
        receiveTestReducers([{ id: "1" }, { id: "2" }], reducerName);
      }, []);
      return <div />;
    }
function NewTestComponent ( { receiveTestReducers , reducerName } ) { useEffect ( ( ) => { receiveTestReducers ( [ { id : "1" } , { id : "2" } ] , reducerName ) ; } , [ ] ) ; return < div / > ; }
Create a component that dispatch an action on mount
Create a component that dispatch an action on mount