Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Last active August 15, 2016 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeaholicguy/ae7f06d358fd1c524bf19bc4dbf8bc29 to your computer and use it in GitHub Desktop.
Save codeaholicguy/ae7f06d358fd1c524bf19bc4dbf8bc29 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import TrackList from './components/TrackList';
import {configureStore} from './store';
import * as actions from './actions';
const tracks = [
{
id: 1,
title: 'Em của ngày hôm qua'
},
{
id: 2,
title: 'Cơn mưa ngang qua'
}
];
const store = configureStore();
store.dispatch(actions.setTracks(tracks));
ReactDOM.render(
<TrackList />,
document.getElementById('app')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment