So I building a React component and I\'m calling the component on another page and I get this error: TypeError: Cannot destructure property \'state\' of \'props.location\' a