MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/Tip.js:12–20  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

10class Tip extends ClickAway(Component) {
11
12 constructor (props) {
13 super(props);
14 this.state = {
15 show: props.show,
16 position: props.position
17 };
18 this.showTip = this.showTip.bind(this);
19 this.hideTip = this.hideTip.bind(this);
20 }
21
22 componentDidMount() {
23 if (this.props.trigger == 'click') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected