MCPcopy Create free account
hub / github.com/SuboptimalEng/coding-tutorials / constructor

Method constructor

react-piano/src/components/Piano.js:13–18  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

11
12class Piano extends React.Component {
13 constructor(props) {
14 super(props);
15 this.state = {
16 pressedKeys: [],
17 };
18 }
19
20 playNote = (note) => {
21 if (!_.isEmpty(note)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected