Skip to content

Instantly share code, notes, and snippets.

@francisngo
Last active December 30, 2017 00:49
Show Gist options
  • Save francisngo/93086a13e3e2df90ad1fe5ff528a205f to your computer and use it in GitHub Desktop.
Save francisngo/93086a13e3e2df90ad1fe5ff528a205f to your computer and use it in GitHub Desktop.
Collection for Redux todo example - This file handles creating the redux store and passing it to the App container
import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import App from './App';
import { reducer } from './reducer';
const store = createStore(reducer);
render(<App store={store}/>, document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment