MCPcopy
hub / github.com/MicheleBertoli/react-fix-it / constructor

Method constructor

demo/entry.js:23–29  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21class CustomLogger extends Component {
22
23 constructor(props) {
24 super(props)
25
26 this.state = { test: null }
27
28 options.log = test => this.setState({ test })
29 }
30
31 render() {
32 return this.state.test && <pre>{this.state.test}</pre>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected