UNPKG

react-hyperscript-beefy-boilerplate

Version:

A boilerplate for react-hyperscript using browserify with beefy and ES6.

13 lines (9 loc) 214 B
const extend = require('xtend') module.exports = function(state, action) { if (action.type === 'INCREMENT_NONCE') { return extend(state, { nonce: state.nonce + 1, }) } return extend(state) }