MCPcopy Index your code
hub / github.com/ReactTooltip/react-tooltip / render

Method render

example/src/App.js:40–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 render() {
41 const { place, type, effect } = this.state
42 return (
43 <div>
44 <section className="tooltip-example">
45 <h4 className="title">React Tooltip - V4</h4>
46 <div className="demonstration">
47 <a data-for="main" data-tip="Hello<br />multiline<br />tooltip" data-iscapture="true">
48 ◕‿‿◕
49 </a>
50 </div>
51 <div className="control-panel">
52 <div className="button-group">
53 <div className="item">
54 <p>Place</p>
55 <a
56 className={place === 'top' ? 'active' : ''}
57 onClick={this.changePlace.bind(this, 'top')}
58 >
59 Top<span className="mark">(default)</span>
60 </a>
61 <a
62 className={place === 'right' ? 'active' : ''}
63 onClick={this.changePlace.bind(this, 'right')}
64 >
65 Right
66 </a>
67 <a
68 className={place === 'bottom' ? 'active' : ''}
69 onClick={this.changePlace.bind(this, 'bottom')}
70 >
71 Bottom
72 </a>
73 <a
74 className={place === 'left' ? 'active' : ''}
75 onClick={this.changePlace.bind(this, 'left')}
76 >
77 Left
78 </a>
79 </div>
80 <div className="item">
81 <p>Type</p>
82 <a
83 className={type === 'dark' ? 'active' : ''}
84 onClick={this.changeType.bind(this, 'dark')}
85 >
86 Dark<span className="mark">(default)</span>
87 </a>
88 <a
89 className={type === 'success' ? 'active' : ''}
90 onClick={this.changeType.bind(this, 'success')}
91 >
92 Success
93 </a>
94 <a
95 className={type === 'warning' ? 'active' : ''}
96 onClick={this.changeType.bind(this, 'warning')}
97 >

Callers 3

index-dev.tsxFile · 0.80
renderFixtureFunction · 0.80
unmountFixtureFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected