1
- import React from 'react' ;
2
- import ReactDOM from 'react-dom' ;
3
- import './index.css' ;
4
- import App from './App' ;
5
- import * as serviceWorker from './serviceWorker' ;
1
+ // import React from 'react';
2
+ // import ReactDOM from 'react-dom';
3
+ // import './index.css';
4
+ // import App from './App';
5
+ // import * as serviceWorker from './serviceWorker';
6
6
7
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
7
+ // ReactDOM.render(<App />, document.getElementById('root'));
8
8
9
- // If you want your app to work offline and load faster, you can change
10
- // unregister() to register() below. Note this comes with some pitfalls.
11
- // Learn more about service workers: https://bit.ly/CRA-PWA
12
- serviceWorker . unregister ( ) ;
9
+ // // If you want your app to work offline and load faster, you can change
10
+ // // unregister() to register() below. Note this comes with some pitfalls.
11
+ // // Learn more about service workers: https://bit.ly/CRA-PWA
12
+ // serviceWorker.unregister();
13
+
14
+ // import store from "./js/store/index";
15
+ // import { addArticle } from "./js/actions/index";
16
+ // window.store = store;
17
+ // window.addArticle = addArticle;
18
+ import React from "react" ;
19
+ import { render } from "react-dom" ;
20
+ import { Provider } from "react-redux" ;
21
+ import store from "./store/index" ;
22
+ import App from "./components/App.jsx" ;
23
+ // if you're in create-react-app import the files as:
24
+ import store from "./js/store/index" ;
25
+ // import App from "./js/components/App.jsx";
0 commit comments