supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

Support custom entity names (a-sphere, a-box, etc) #41

Closed jesstelford closed 8 years ago

jesstelford commented 8 years ago

Enables adding event listeners to custom entities the "React Way" with the events object, or the on* syntax:

<Entity entityName='a-sphere' onClick={this.handleClick} />

Should fix #40

ngokevin commented 8 years ago

nice! just gonna tweak to be perhaps primitive to match the a-frame naming