1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-01 04:22:28 +02:00

dual rendering possible using --singles

This commit is contained in:
Pomax
2016-01-16 17:57:16 -08:00
parent a346272dee
commit 819b628456
21 changed files with 4748 additions and 119 deletions

View File

@@ -0,0 +1,19 @@
var React = require("react");
var Page = require("./Page.jsx");
var sectionList = require("./sections"),
sectionMap = function(mapping) {
return Object.keys(sectionList).map(mapping);
},
allSections = sectionMap(function(name, entry) {
var Type = sectionList[name];
return <Type key={name} name={name} number={entry} />;
});
var FullArticle = React.createClass({
render: function() {
return <Page content={ allSections }/>;
}
});
module.exports = FullArticle;