mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-12 19:54:31 +02:00
anchors
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user