Skip to content

Instantly share code, notes, and snippets.

@cyb3rsalih
Created May 8, 2019 16:37
Show Gist options
  • Save cyb3rsalih/ab835e133b0e863999343950f45e4655 to your computer and use it in GitHub Desktop.
Save cyb3rsalih/ab835e133b0e863999343950f45e4655 to your computer and use it in GitHub Desktop.
Redux-2
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)
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