(props, context)
| 8 | class 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 }) |
nothing calls this directly
no outgoing calls
no test coverage detected