Reusable ResizeListener React Component
ResizeListener component anywhere you need to listen to the resize event. Then pass a function into the
resizeHandler prop. This is a required prop. Because you include this component in other components, the function you pass has access to any props or state of that component.