mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2025-07-05 10:33:16 -07:00
15 lines
261 B
JavaScript
15 lines
261 B
JavaScript
import { SETINPUTSTRING } from "../actions/inputStringAction";
|
|
|
|
export default (state, action) => {
|
|
if (!state) {
|
|
state = '';
|
|
}
|
|
|
|
switch (action.type) {
|
|
case SETINPUTSTRING:
|
|
return action.inputString;
|
|
default:
|
|
return state;
|
|
};
|
|
};
|