-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Consolidate
abstract class SketchComponent extends React.Component {...}
class Line extends SketchComponent {
init() {
}
animate() {
}
render() {
return (
<Renderer init={this.init} animate={this.animate} addBackButton addAudioButton navBar={this.renderNavBar()}>
<canvas onMouseMove={...} onMousePress={...} /> <-- in the future we can turn this into a <UnifiedCanvas /> that unifies mouse and touch.
</Renderer>
);
}
renderNavBar() {
return (<button className="help-button">);
}
}Unifies mouse events, mixing React elements, having a navbar, and composability. Win win!