| 3 | import LengthControlForm from "./components/LengthControlForm"; |
| 4 | |
| 5 | class App extends Component { |
| 6 | state = { |
| 7 | sideLength: 150 |
| 8 | }; |
| 9 | |
| 10 | onChange = e => { |
| 11 | this.setState({ sideLength: e.target.value }); |
| 12 | }; |
| 13 | |
| 14 | render() { |
| 15 | const { sideLength } = this.state; |
| 16 | |
| 17 | return ( |
| 18 | <div> |
| 19 | <CubeScene sideLength={sideLength} /> |
| 20 | <LengthControlForm sideLength={sideLength} onChange={this.onChange} /> |
| 21 | </div> |
| 22 | ); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export default App; |
nothing calls this directly
no outgoing calls
no test coverage detected