Skip to content

Instantly share code, notes, and snippets.

View nayunhwan's full-sized avatar
👨‍🎨
Artistic Programmer

Yunhwan Logan Na nayunhwan

👨‍🎨
Artistic Programmer
View GitHub Profile
@nayunhwan
nayunhwan / TickingClock.js
Last active December 27, 2016 16:55
React Reference TickingClock Example
function tick() {
const element = (
<div>
<h1>Hello, world!</h1>
<h2>It is {new Date().toLocaleTimeString()}.</h2>
</div>
);
ReactDOM.render(
element,
document.getElementById('root')
@nayunhwan
nayunhwan / FunctionalComponent.js
Last active December 27, 2016 16:59
Initializing Component with function
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}