canjs / can-stache-element

Create custom elements with can-stache and can-define-class
https://canjs.com/doc/can-stache-element.html
MIT License
3 stars 1 forks source link

Add a diagram explaining the lifecycle methods and hooks #81

Open phillipskevin opened 5 years ago

phillipskevin commented 5 years ago

It would be useful to add a diagram that explains the StacheElement lifecycle methods and hooks:

image

This could explain which methods are called by the browser, the flow through our methods, and when user-defined hooks are called.

phillipskevin commented 5 years ago

There are many of these for React, such as https://twitter.com/dan_abramov/status/981712092611989509.