kindred-component
Base class upon which to build Kindred components. Most of the functionality for consuming these components can be found in kindred-node.
Usage
kindred-component
is designed to be used with ES6 classes. You may need to use a transpiler such as Babel to support older browsers.
const Component =// Each component must have a unique string id, e.g. here it's "custom":'custom'{// called when the component is first created}{// called once per frame, intended for logic such// as physics simulation and event handling}{// called once per frame, intended for anything// related to rendering.}{// called when the component is no longer being used.// use this to clean up after yourself.}moduleexports = CustomComponent
License
MIT. See LICENSE.md for details.