MCPcopy
hub / github.com/preactjs/preact / componentWillMount

Method componentWillMount

debug/test/browser/debug-hooks.test.jsx:30–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 it('should throw an error when using a hook outside a render', () => {
29 class Foo extends Component {
30 componentWillMount() {
31 useState();
32 }
33
34 render() {
35 return this.props.children;

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected