mirror of
https://github.com/mgerb/ps-launcher
synced 2026-01-10 02:22:49 +00:00
lots of progress - basic functionality work - bundling working
This commit is contained in:
16
app/app.tsx
16
app/app.tsx
@@ -1,9 +1,23 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { Provider } from 'mobx-react';
|
||||
import AppState from './state/AppState';
|
||||
import { Wrapper } from './Wrapper/Wrapper';
|
||||
import 'babel-polyfill';
|
||||
|
||||
// base styling
|
||||
import './scss/index.scss';
|
||||
|
||||
ReactDOM.render(<Wrapper />, document.getElementById('app'));
|
||||
const stores = { AppState };
|
||||
|
||||
class App extends React.Component<any, any> {
|
||||
public render(): any {
|
||||
return (
|
||||
<Provider {...stores}>
|
||||
<Wrapper />
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('app'));
|
||||
|
||||
Reference in New Issue
Block a user