Shallow rendering is very useful for unit testing components in isolation. You can read React's documentation on it to get a better sense of what exactly it is, but a quick explanation is that it renders the component, but not any child components. In other words, if component Foo's rendering is
html! {
<div>
<span>Hello World!</span>
<Bar baz="qux" />
</div>
}
then a shallow render would output
<div>
<span>Hello World!</span>
<Bar baz="qux" />
</div>
Questionnaire
Shallow rendering is very useful for unit testing components in isolation. You can read React's documentation on it to get a better sense of what exactly it is, but a quick explanation is that it renders the component, but not any child components. In other words, if component
Foo's rendering isthen a shallow render would output
Questionnaire