Skip to content

Instantly share code, notes, and snippets.

@drex44
Created September 3, 2018 09:11
Show Gist options
  • Save drex44/deb755b266d7f2f68c084a7124d67e7d to your computer and use it in GitHub Desktop.
Save drex44/deb755b266d7f2f68c084a7124d67e7d to your computer and use it in GitHub Desktop.
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
import ToDO from "./pages/todo";
import { Provider as ReduxProvider } from "react-redux";
import configureStore from "./modules/store";
const reduxStore = configureStore(window.REDUX_INITIAL_DATA);
class App extends Component {
render() {
return (
<ReduxProvider store={reduxStore}>
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">ToDo Redux app</h1>
</header>
<ToDO />
</div>
</ReduxProvider>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment