Given a very simply shadow-grove component, such as:
(defc thing []
(render (<< [:div "hello"])))
And supposing, just for example, that I wanted to log the inner HTML of the component after every render, the component may be modified like this:
(defc thing []
(hook
(sg/render-effect
(fn [env]
;; Somehow bind the element as `el`, in order to log to the console:
(js/console.log (.-innerHTML el)))))
(render (<< [:div "hello"])))
How would I get that element which the comment indicates?