UNPKG
react-hyperscript-beefy-boilerplate
Version:
latest (2.3.0)
2.3.0
2.1.0
2.0.1
2.0.0
1.0.2
1.0.1
A boilerplate for react-hyperscript using browserify with beefy and ES6.
react-hyperscript-beefy-boilerplate
/
lib
/
reducers
/
index.js
13 lines
(9 loc)
•
214 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
extend
=
require
(
'xtend'
)
module
.exports = function(state, action) {
if
(action.type ===
'INCREMENT_NONCE'
) {
return
extend
(state, {
nonce:
state.nonce +
1
, }) }
return
extend
(state) }