Skip to content

Instantly share code, notes, and snippets.

@arackaf
Created April 10, 2017 19:10
Show Gist options
  • Select an option

  • Save arackaf/b0ffa74253cc3e96ca9c79a81e362ab1 to your computer and use it in GitHub Desktop.

Select an option

Save arackaf/b0ffa74253cc3e96ca9c79a81e362ab1 to your computer and use it in GitHub Desktop.
class ShowCurrentTimeRaw extends Component {
render() {
return (
<div style={this.props.style}>
<span style={{color: 'purple'}}>Time is {this.props.time}</span>
</div>
);
}
}
const ShowCurrentTime = currentTime(ShowCurrentTimeRaw);
render(
<div>
<ShowCurrentTime style={{fontWeight: 'bold'}} />
</div>, document.getElementById('home')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment