Generate recursive snapshot including all children

This means child components must also be set inside the state of the parent, using the `children` key.