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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user