1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 03:59:58 +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

@@ -1,13 +1,5 @@
var React = require("react");
var ReactDOM = require("react-dom");
var Article = require("./Article.jsx");
require("../stylesheets/style.less");
ReactDOM.render(<Article/>, document.getElementById("article"), function() {
// trigger a #hash navigation
if (window.location.hash) {
var hash = window.location.hash;
window.location.hash = hash;
}
});
var FullArticle = require("./FullArticle.jsx");
var generateSingleSection = require("../pages/generateSingleSection");
ReactDOM.render(<FullArticle/>, document.getElementById("article"));