You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
react-redux/js/index.js

17 lines
457 B

import ReactDOM from 'react-dom';
import React from 'react';
import App from './components/app.js';
import { Provider } from 'react-redux'
import store from './store.js'
store.dispatch({type:'ADD', comment: { body: "fun" }});
store.dispatch({type:'ADD', comment: { body: "for" }});
store.dispatch({type:'ADD', comment: { body: "matt" }});
ReactDOM.render(
<Provider store={store}>
<App/>
</Provider>,
document.querySelector('main')
);