diff --git a/src/view/App.tsx b/src/view/App.tsx index 9731aa6a1..5084bfd38 100644 --- a/src/view/App.tsx +++ b/src/view/App.tsx @@ -4,6 +4,7 @@ "use strict"; import * as React from "react"; import Simulator from "./components/Simulator"; +import InputSlider from "./components/toolbar/InputSlider" import "./App.css"; class App extends React.Component { @@ -12,6 +13,7 @@ class App extends React.Component {
+ { + constructor(props: ISliderProps){ + super(props); + this.state = { + value:0 + }; + + this.handleOnChange = this.handleOnChange.bind(this); + } + + + render(){ + return ( +
+ + + +
+ ) + } + + private handleOnChange(event: React.ChangeEvent){ + const inputElement = event.target + const newValue = inputElement? inputElement.value:0; + this.setState({value:newValue}); + + } + +} + +export default InputSlider; +