reagent 2023-08-10

Hello everyone 👋 I'm diving deep into how reagent works and I wonder how it captures the encompassing component to rerender when a state changes. I see in the code: run-in-reaction which seem to do exactly that, who calls it? and how is it interleaved in to the hiccup components tree?

The :render function that Reagent creates for you when you create a Reagent component.

> and how is it interleaved in to the hiccup components tree? Components are sorted from parents to children and the parents are rendered first.