Download client/src/reducers/user.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/reducers/user.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/reducers/user.js
-
curl -L -o user.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/reducers/user.js
333 Bytes
| import produce from 'immer'; | |
| import * as types from '../common/actionTypes'; | |
| const initialState = { | |
| msg: '', | |
| }; | |
| const userReducer = produce((draft = initialState, action) => { | |
| switch (action.type) { | |
| case types.UPDATE_HELLO_MSG: { | |
| draft.msg = action.payload; | |
| } | |
| } | |
| return draft; | |
| }); | |
| export default userReducer; | |