title: check state of a component using react testing library
body: <p>I have triggered a change in component using react testing library and I want to check the corresponding change in the state of the component.
  Is it possible to check the state of the component</p>