This React demo places the component script in the page's head section. I've placed an execution script block at the end of the body to execute component code with a ReactDOM.render statement.