import * as React from "react"; import { MyData, MyDataStorage } from "../../storage/MyData"; import { InputCtrl } from "./InputCtrl"; import { InputModel } from "./InputModel"; const style = { panel: { border: 'solid 1px', display: 'inline-flex', padding: '5px', height: '30px', width: '360px' }, displayPanel: { display: 'inline-flex', paddingLeft: '10px', paddingRight: '10px', margin: 'auto' }, button: { height: '25px', fontSize: '14pt', MarginBottom: '-10px' }, display: { marginTop: '5px', paddingLeft: '10px', paddingRight: '10px', } }; export class Input extends React.Component { public state: MyData; private ctrl: InputCtrl; constructor(props: any) { super(props); const dataModule = new InputModel(this, MyDataStorage.state); this.ctrl = new InputCtrl(dataModule); this.state = new MyData(); } render() { return (

Foo: {this.state.foo}

Bar: {this.state.bar}

); } }