Skip to content

Instantly share code, notes, and snippets.

@fredericksilva
Forked from c7tincu/fml.jsx
Last active August 29, 2015 14:21
Show Gist options
  • Save fredericksilva/fd6522f887a145b48f10 to your computer and use it in GitHub Desktop.
Save fredericksilva/fd6522f887a145b48f10 to your computer and use it in GitHub Desktop.
// You’d expect this one…
render() {
return (
<button { ...this.props } className={ this.cn + (this.props.className ? ' ' + this.props.className : '') }>
{ this.props.children }
</button>
);
}
// …and this another one…
render() {
return (
<button className={ this.cn + (this.props.className ? ' ' + this.props.className : '') } { ...this.props }>
{ this.props.children }
</button>
);
}
// …to be the same, right!? Well, guess again…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment