Last active
August 29, 2015 14:20
-
-
Save wesleytodd/990f0292051c5210abbd to your computer and use it in GitHub Desktop.
Render example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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