Skip to content

Instantly share code, notes, and snippets.

@burabure
Created March 2, 2015 22:31
Show Gist options
  • Save burabure/3e3cd46e308cfd22e102 to your computer and use it in GitHub Desktop.
Save burabure/3e3cd46e308cfd22e102 to your computer and use it in GitHub Desktop.
for (let angle of ViewportAngles) {
var checked = this.props.viewAngle === angle;
viewAngleOptions.push(
<div className="viewAngle">
<input
type="radio"
name="viewportAngles"
id={angle}
value={angle}
key={angle}
checked={this.props.checked}
onChange={this._onChangeView} />
<label htmlFor={angle}>{angle}</label>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment