-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (30 loc) · 760 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React, { Component } from "react";
import { Provider } from "react-redux";
// Common Redux
import Sidebar from "./components/Sidebar";
import Video from "./components/Video";
import store from "./store/index";
// React Hooks + Redux
import CourseList from "./components/CourseList";
import storeHooks from "./store/storeHooks";
class App extends Component {
render() {
return (
<div className="App">
<h1>Common Redux</h1>
<hr />
<Provider store={store}>
<Video />
<Sidebar />
</Provider>
<br />
<hr />
<h1>React Hooks + Redux</h1>
<Provider store={storeHooks}>
<CourseList />
</Provider>
</div>
);
}
}
export default App;