Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { createElement } = require('react')
const test = require('tape')
const { composeBundlesRaw, createSelector } = require('redux-bundler')
const render = require('react-dom/server').renderToStaticMarkup
const { connect, Provider } = require('../')
const getStore = composeBundlesRaw({
name: 'numberBundle',
reducer: (state = 0, { type, payload }) => {
if (type === 'INCREMENT') {
return state + 1
}
if (type === 'DECREMENT') {
return state - 1
}
return state
},
selectNumber: state => state.numberBundle,
selectIsPositive: createSelector('selectNumber', number => number > 0)
})
const Page = ({ number }) => createElement('div', null, number)
import { composeBundlesRaw, debugBundle } from 'redux-bundler'
import blog from './blog'
import jobs from './jobs'
import ui from './ui'
export default composeBundlesRaw(blog, jobs, ui, debugBundle)