Answers for "react native reducer example"

0

react native reducer example

import { combineReducers } from 'redux';

const INITIAL_STATE = {
  current: [],
  possible: [
    'Alice',
    'Bob',
    'Sammy',
  ],
};

const friendsReducer = (state = INITIAL_STATE, action) => {
  switch (action.type) {
    default:
      return state
  }
};

export default combineReducers({
  friends: friendsReducer
});
Posted by: Guest on November-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language