const initialState = { currentUser: null } //Action -an object describing what happened. //Reducers -calculate the new state based on the old state and the action //The state is equal to the initial state if no state is passed along to this f (an action is passed along the initial state) //Remember, our actions will be calling the DB, fetching data, and sending it to our reducer (this f) //which will then update the state. (Esto va a devolver al user con sus estado, nuevo o igual) //Esto esta setea'o para recivir info de otros files export const user = (state = initialState, action) => { return { ... state, currentUser: action.currentUser } }