New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

startreact

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

startreact - npm Package Compare versions

Comparing version
1.3.0
to
1.3.1
+1
-1
package.json
{
"name": "startreact",
"version": "1.3.0",
"version": "1.3.1",
"description": "React + Redux + Hot + Webpack + Express Template Generator",

@@ -5,0 +5,0 @@ "main": "",

import * as ActionTypes from '../constants';
export function increment() {
return {
type: ActionTypes.INCREMENT
}
// with redux thunk, in actions you have the access to store.dispatch and store.getState
return ((dispatch, getState) => {
return {
type: ActionTypes.INCREMENT
};
});
}
export function decrement() {
return {
type: ActionTypes.DECREMENT
}
// with redux thunk, in actions you have the access to store.dispatch and store.getState
return ((dispatch, getState) => {
return {
type: ActionTypes.DECREMENT
};
});
}
import './style.css';
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux';
import * as actions from '../../actions';

@@ -25,7 +26,7 @@ class Counter extends Component {

_onIncrement() {
this.props.dispatch({ type: 'INCREMENT' });
this.props.dispatch(actions.increment());
}
_onDecrement() {
this.props.dispatch({ type: 'DECREMENT' });
this.props.dispatch(actions.decrement());
}

@@ -32,0 +33,0 @@