I am getting this error:
Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/funct
I got this error in react routing, problem was that I was using
} exact />
but it was wrong route requires component as a class/function so I changed it to
and it worked. (Just avoid the braces around the component)