Walk a React (or Preact) element tree, executing a "visitor" function against each element.
Huge thanks to @bartlangelaan for the help in adding an awesome new feature. ⭐️
Huge rewrite/refactor of the library!
componentWillMount
now gets executed before the visitor. This should allow for better initialized instances being passed into the visitor. This likely won't affect you, but it is good to be made aware of this change. Fixes the manner in which context is passed down the tree.: ef75192a13b8785488d1a8ee6ed55753db2f5c67