13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
/** @jsx React.DOM */
|
|
|
|
var Tip = React.createClass({
|
|
render: function() {
|
|
return (
|
|
<div className="tooltip">
|
|
{this.props.children}
|
|
<span className="tooltiptext">{this.props.text}</span>
|
|
</div>
|
|
);
|
|
},
|
|
});
|