Files
flood/client/source/scripts/app.js
Kenny Tran 57860dc1b4 Alphabetize imports
What is the alphabet?

From wikipedia: `An alphabet is a standard set of letters (basic written symbols or graphemes) which is used to write one or more languages based on the general principle that the letters represent phonemes (basic significant sounds) of the spoken language.`

Why do we want `import`s to be alphabetized?

Alphabetizing `import`s  can make parsing them at a quick glance of the eyes easier.
2016-01-31 18:20:25 -08:00

33 lines
915 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import Application from './components/layout/Application';
import ApplicationContent from './components/layout/ApplicationContent';
import Modals from './components/modals/Modals';
import Sidebar from './components/panels/Sidebar';
import TorrentActions from './actions/TorrentActions';
import TorrentDetailsView from './components/panels/TorrentDetailsView';
import TorrentListView from './components/panels/TorrentListView';
class FloodApp extends React.Component {
componentDidMount() {
TorrentActions.fetchLatestTorrentLocation();
}
render() {
return (
<Application>
<Sidebar />
<ApplicationContent>
<TorrentDetailsView />
<TorrentListView />
</ApplicationContent>
<Modals />
</Application>
);
}
}
ReactDOM.render(<FloodApp />, document.getElementById('app'));