Remove unnecessary codes
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
const React = require('react');
|
||||
|
||||
class HoveringURL extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={this.props.style}>
|
||||
{this.props.targetURL}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
function HoveringURL(props) {
|
||||
return (
|
||||
<div style={props.style}>
|
||||
{props.targetURL}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
HoveringURL.propTypes = {
|
||||
|
Reference in New Issue
Block a user