Last active
July 10, 2017 16:25
-
-
Save davidbalbert/d129d7129ebc9a4e534a9961d9e83919 to your computer and use it in GitHub Desktop.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React Scout test</title> | |
| <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.6.1/react-dom.js"></script> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| <script type="text/babel"> | |
| const { Component } = React; | |
| class Hello extends Component { | |
| render() { | |
| return ( | |
| <div> | |
| Hello world! | |
| <div className="rc-scout"> | |
| <!-- A script tag in JSX doesn't work. This at least renders, though the script doesn't get loaded --> | |
| { React.createElement('script', {async: true, defer: true, src: "https://www.recurse-scout.com/loader.js?t=ae5d64814d3c0a5c7607959df6e4b4f9"}) } | |
| </div> | |
| </div> | |
| ); | |
| } | |
| } | |
| ReactDOM.render(<Hello />, document.getElementById("root")); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment