Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. · Issue #5428 · remix-run/react-router · GitHub
Setting up routes in your React Application with react-router-dom — part 1/2 | by Alex Mendes | Medium
javascript - how to hide a component on specific routes in react.js - Stack Overflow
Understanding Functional Components vs. Class Components in React