This is my markdown file.
DOM_NODE.innerHTML = 'Hey there!'
If you want to use babel, make sure to add babel-standalone like this file does at the top:
class Demo extends React.Component {
componentDidMount() {
setInterval(() => this.forceUpdate(), 500)
}
render() {
return <h1>This is cool times {Date.now()}</h1>
}
}
ReactDOM.render(
<Demo/>,
DOM_NODE
)
Isn't that
- Cool
- Awesome
- Incredibly inflexible?
Yes.
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> <script src="https://unpkg.com/[email protected]/dist/react.min.js"></script> <script src="https://unpkg.com/[email protected]/dist/react-dom.min.js"></script>