Shallow rendering is useful for writing unit test cases in React. It lets you render a component one level deep and assert facts about what its
render method returns,
without worrying about the behavior of child components, which are not instantiated or rendered.