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