Skip to content

Instantly share code, notes, and snippets.

@wesleytodd
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleytodd/990f0292051c5210abbd to your computer and use it in GitHub Desktop.
Save wesleytodd/990f0292051c5210abbd to your computer and use it in GitHub Desktop.
Render example
var pubId = 'the starting value';
var render = function() {
// The right sidebar
var rightSidebar = module.exports = React.render((
<RightSidebar showCloseButton={false}>
<SidebarSection title="Register Complete" ref="register-complete">
<IframeComponent src={"/embed/" + pubId }/>
</SidebarSection>
</RightSidebar>
), document.querySelector('.side-right'));
}
render();
setTimeout(function() {
pubId = 'some value you got somewhere';
render();
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment