MCPcopy Create free account
hub / github.com/codemistic/Web-Development / App

Class App

React Threejs Example App/src/App.js:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import LengthControlForm from "./components/LengthControlForm";
4
5class 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
26export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected