UNPKG
react-redux-express
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
React fullstack generator with express,redux, and some components.
react-redux-express
/
src
/
reducers
/
app.js
15 lines
(13 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** * Created by Zhengfeng Yao on 16/8/27. */
import
{
APP
}
from
'../actionTypes'
;
const
{
INIT
} =
APP
;
const
INIT_STATE
= {};
export
default
function
reducer
(
state=INIT_STATE, {
type
, payload}
) {
switch
(
type
) {
case
INIT
:
default
:
return
state; } }