diff --git a/package.json b/package.json
index d54e0a079..f07d94dab 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
},
"dependencies": {
"prop-types": "^15.7.2",
- "react": "^16.8.0",
+ "react": "^16.8.6",
"react-dom": "^16.8.0",
"react-redux": "^7.1.0",
"redux": "^4.0.1"
@@ -19,5 +19,17 @@
"build": "react-scripts build",
"eject": "react-scripts eject",
"test": "react-scripts test"
+ },
+ "browserslist": {
+ "production": [
+ ">0.2%",
+ "not dead",
+ "not op_mini all"
+ ],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
}
}
diff --git a/src/actions/index.js b/src/actions/index.js
index 17cab299b..b175f2b5b 100644
--- a/src/actions/index.js
+++ b/src/actions/index.js
@@ -11,8 +11,16 @@ export const DECREMENT = 'DECREMENT';
export const increment = () => {
// Fill in this function
+ return {
+ type: INCREMENT,
+ payload: 1
+ };
};
export const decrement = () => {
// Fill in this function
-};
+ return {
+ type: DECREMENT,
+ payload: -1
+ };
+};
\ No newline at end of file
diff --git a/src/components/Counter.js b/src/components/Counter.js
index 85802fbde..0132d5b61 100644
--- a/src/components/Counter.js
+++ b/src/components/Counter.js
@@ -1,4 +1,4 @@
-import React, { Component } from "react";
+ import React, { Component } from "react";
import { connect } from 'react-redux';
import { increment, decrement } from '../actions';
@@ -20,10 +20,10 @@ class Counter extends Component {
return (
Clicked: {this.props.count} times
-