1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 19:54:31 +02:00
This commit is contained in:
Pomax
2016-01-23 10:40:48 -08:00
parent fc6fed2e0f
commit 3e737e7ed7
3 changed files with 9 additions and 5 deletions

View File

@@ -2,7 +2,11 @@ var React = require("react");
var SectionHeader = React.createClass({
render: function() {
return <h2 data-num={this.props.number}><a href={'#' + this.props.name}>{this.props.title}</a></h2>;
return (
<h2 id={this.props.name} data-num={this.props.number}>
<a href={'#' + this.props.name}>{this.props.title}</a>
</h2>
);
}
});