MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / constructor

Method constructor

xadmin-dashboard/src/editor/components/DataModal.js:10–15  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

8class DataEditor extends React.Component {
9
10 constructor(props, context) {
11 super(props, context)
12 this.state = {
13 code: JSON.stringify(props.data, null, 2)
14 }
15 }
16
17 onChange = (newValue) => {
18 this.setState({ code: newValue })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected