diff --git a/src/App.js b/src/App.js
index 392ed1f..9fa061f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -16,9 +16,21 @@ import SortUsers from "./components/SortUsers";
import ScaleVideo from "./components/ScaleVideo";
import Modal from "./components/Modal";
import ShowModal from "./components/ShowModal";
+import store from "./store";
-function App() {
- return (
+class App extends React.Component {
+
+ componentDidMount() {
+ fetch('https://jsonplaceholder.typicode.com/users ')
+ .then(res => res.json())
+ .then(data => {
+ store.dispatch({type: "LOAD_USERS", value: data})
+ })
+ .catch(err => console.log(`Error: ${err}`))
+ }
+
+ render() {
+ return (
@@ -28,7 +40,7 @@ function App() {
-
+
@@ -60,6 +72,7 @@ function App() {
- );
+ );
+ }
}
export default App;
\ No newline at end of file
diff --git a/src/components/ChangeTemperature.js b/src/components/ChangeTemperature.js
index fa894bc..a5102ba 100644
--- a/src/components/ChangeTemperature.js
+++ b/src/components/ChangeTemperature.js
@@ -1,4 +1,5 @@
import React from "react";
+import store from '../store'
function ChangeTemperature(props){
return(
@@ -6,7 +7,7 @@ function ChangeTemperature(props){
diff --git a/src/components/CityDropDown.js b/src/components/CityDropDown.js
index d43df20..b0b966f 100644
--- a/src/components/CityDropDown.js
+++ b/src/components/CityDropDown.js
@@ -1,4 +1,5 @@
import React from 'react';
+import store from '../store';
function CityDropDown(props) {
return (
@@ -6,7 +7,7 @@ function CityDropDown(props) {
CurrentCity: