Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Set text
);
}
}
function mapStateToProps(state) {
return {
content: state.content,
counter: state.counter,
};
}
const App = connect(mapStateToProps)(Page);
class Entry extends Component {
static async getStore(props) {
// console.log(`request props: ${JSON.stringify(props, null, 2)}`);
return createStore(
combineReducers({
content,
counter,
})
);
}
static async getPartial({ store }) {
// console.log(`request props: ${JSON.stringify(props, null, 2)}`);
const html = (
}}>
Set text
;
}
}
function mapStateToProps(state) {
return {
content: state.content,
counter: state.counter
};
}
let App = connect(
mapStateToProps
)(Page);
function counter(state = {
count: 0
}, action = {}) {
switch (action.type) {
case 'counter/add':
return Object.assign({}, state, {
count: state.count + 1
});
case 'counter/minus':
return Object.assign({}, state, {
count: state.count - 1
});
default: