Skip to content

Instantly share code, notes, and snippets.

@h4091
Last active December 28, 2018 14:12
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 h4091/12524d5ec8b40676a6df79be8f75101a to your computer and use it in GitHub Desktop.
Save h4091/12524d5ec8b40676a6df79be8f75101a to your computer and use it in GitHub Desktop.
Test3
<div id="root">
</div>
function tick() {
const element = (
<div>
<h1>Hello world!</h1>
<h2>It is {new Date().toLocaleTimeString()}.</h2>
</div>
);
ReactDOM.render(element, document.getElementById("root"));
}
setInterval(tick, 1000);
<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>

Test3

Learn the fundamentals of React, including simple and class components, state, props, and submitting form data.

Ticking Clock Example

A Pen by 你银子掉了 on CodePen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment