Created
April 4, 2020 06:10
-
-
Save adriaanbd/1fb69cdbd2ebdc149b8b8e60e8d9e6e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { createStore } from 'redux'; | |
import { Provider } from 'react-redux' | |
import App from './components/App'; | |
import './style.css'; | |
const defaultState = { | |
checked: false, | |
appName: 'adriaanbd', | |
articles: null | |
} | |
const reducer = (state = defaultState, action) => { | |
return state; | |
} | |
const store = createStore(reducer); | |
ReactDOM.render(<Provider store={store}><App /></Provider>, document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment