i have container div static html. don't want react router if default location /. expects default view don't have. there easy solution.
i tried doesn't work back/forward browser button?
var initapp = function() { router.run(routes, function(handler) { if(router.hashlocation.getcurrentpath() !== '/') { react.render(<handler/>, document.getelementbyid('top-container')); } }); }
seems hacky suggest - have tried passing mocked component (not inheriting react.component) no-op render: function() {}? otherwise, think react replace wrapper's innerhtml.
on other hand - rendering server-side? if so, output of "dumb" component handler '/' prints same markup container holds, quite literally static html anyway, despite being rendered react.
Comments
Post a Comment