MCPcopy Create free account
hub / github.com/SplootCode/splootcode / constructor

Method constructor

packages/editor/src/components/edit_box.tsx:27–36  ·  view source on GitHub ↗
(props: EditBoxProps)

Source from the content-addressed store, hash-verified

25 inputBox: React.RefObject<HTMLInputElement>
26
27 constructor(props: EditBoxProps) {
28 super(props)
29 const editBoxData = this.props.editBoxData
30 this.editTextArea = React.createRef()
31 this.inputBox = React.createRef()
32
33 this.state = {
34 userInput: editBoxData.contents, // Get current edit value
35 }
36 }
37
38 render() {
39 const { userInput } = this.state

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected