raphamorim / react-ape

🦍• React Renderer to build UI interfaces using canvas/WebGL (TV and Hardware-Accelerated GPU development based)
https://raphamorim.io/react-ape/
MIT License
1.57k stars 48 forks source link

Support for life-cycle events on Renderer elements #17

Closed djunior closed 5 years ago

djunior commented 6 years ago

Please add support for life-cycle events to basic Renderer elements such as:

I currently work with a fps-based rendering engine operating on canvas, and I wanted to try implementing those elements based on the existing Components on this engine.

raphamorim commented 5 years ago

For the initial release, gonna focus on custom components using classes with render and reset methods which can be called by React Ape. It's gonna improve over time (adding more lifecycles and making it more similar to a React Component class)

https://raphamorim.io/react-ape/docs/customcomponents-registercomponent