Sample jsx components. React-redux.
This commit is contained in:
parent
69d47c85f0
commit
fbf7a5452c
5 changed files with 114 additions and 9 deletions
22
src/index.js
22
src/index.js
|
@ -1,14 +1,20 @@
|
|||
// import React from 'react';
|
||||
// import ReactDOM from 'react-dom';
|
||||
// import './index.css';
|
||||
// import App from './App';
|
||||
// import * as serviceWorker from './serviceWorker';
|
||||
import index from './js/index'
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
// import './index.css'
|
||||
import { Provider } from 'react-redux'
|
||||
import store from './js/store/index'
|
||||
import App from './js/components/App.jsx'
|
||||
import * as serviceWorker from './serviceWorker'
|
||||
|
||||
// ReactDOM.render(<App />, document.getElementById('root'));
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<App />
|
||||
</Provider>,
|
||||
document.getElementById('root')
|
||||
)
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
// serviceWorker.unregister();
|
||||
serviceWorker.unregister();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue