Shallow component rendering?

Curious if anyone has ever come across a way to do a shallow render/creation of a component? (e.g. rendering a component and explicitly not adding any of its children.)

Would be very useful for testing

You can just call the component’s paint() method with your own graphics context.

1 Like