Sample jsx components. React-redux.

This commit is contained in:
Rodrigo Pedroso 2019-06-19 14:49:50 -04:00
commit fbf7a5452c
5 changed files with 114 additions and 9 deletions

View file

@ -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();