mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-28 10:40:52 +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>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -5,7 +5,7 @@ var SectionHeader = require("../../SectionHeader.jsx");
|
||||
var Explanation = React.createClass({
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
title: "The Bézier interval"
|
||||
title: "The Bézier interval [0,1]"
|
||||
};
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user