View
is a container that supports layout with flexbox, style, and some event handling. View
maps directly to the underlying native reactjuce::View
instance, which is effectively a simple juce::Component
.View
is designed to be nested inside other views and can have 0 to many children of any type.View
's layout calculation changes. The callback should accept a single argument, a SyntheticEvent object holding a width
and height
property reflecting the new size of the View
.SyntheticMouseEvent
object similar in interface to MouseEvent.SyntheticMouseEvent
object similar in interface to MouseEvent.