Created
May 8, 2019 16:41
-
-
Save cyb3rsalih/30656a268973498f035e0a88ac92a5d5 to your computer and use it in GitHub Desktop.
Redux-3
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 './css/index.css'; | |
import App from './pages/App'; | |
import {BrowserRouter as Router } from 'react-router-dom' | |
import { createStore } from 'redux' | |
function reducer(){ | |
return 'My State' | |
} | |
const store = createStore(reducer) | |
console.log(store.getState()) | |
ReactDOM.render(<Router> <App/> </Router> , document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment