B:BD[
3.3002] → [
3.3002:3253]
* render(delta, props) // pure, only accesses this.state. delta == ticksSinceLastRender is so common that we explicitly have a param for it.
* shouldUpdate(props) // optional, default implementation is true, also allows returning a priority/timestamp
* render(delta, props) // pure, only accesses this.state. delta == ticksSinceLastRender is so common that we explicitly have a param for it. this would also be a good place to create new children if necessary. sample implementation: {
this.children.map((it) => it.render(...));
renderSelf();
}
* shouldUpdate(props) // optional, default true if missing, also allows returning a priority/timestamp. library boilerplate here to shallow check props