posted 3 years ago
I'm building a React front end with a Spring back end. I'm using React Router and Redux. When I try to switch pages I get this error:
TypeError: Cannot read property 'wrappedComponentRef' of null
I've looked around and it has something to do with the withRouter() of React Router. I think it's saying that my Component is null. It's a functional component. Here's the code.
withRouter(Connect(MovieSelection))