MCPcopy
hub / github.com/Pomax/react-onclickoutside / render

Method render

test/browser/test3.js:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 };
24 }
25 render() {
26 return React.createElement('div', {
27 children: [
28 React.createElement('button', {
29 onClick: e => this.state.hideToolbox && this.show(e),
30 children: 'show text inside shadow DOM',
31 }),
32 this.state.hideToolbox ? null : React.createElement(Popup, { hide: e => this.hide(e) }),
33 ],
34 });
35 }
36 show() {
37 this.setState({ hideToolbox: false });
38 }

Callers 1

constructorMethod · 0.45

Calls 2

showMethod · 0.95
hideMethod · 0.95

Tested by

no test coverage detected