![Setting up routes in your React Application with react-router-dom — part 2/2 | by Alex Mendes | Medium Setting up routes in your React Application with react-router-dom — part 2/2 | by Alex Mendes | Medium](https://miro.medium.com/max/1400/1*iQq9k0efhM-_L71rZF3Ufg.png)
Setting up routes in your React Application with react-router-dom — part 2/2 | by Alex Mendes | Medium
![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 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](https://user-images.githubusercontent.com/12945325/29207478-d9abba7c-7eb8-11e7-83d7-debb630929df.png)
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
![javascript - react-router-dom, useHistory() function inside a class based component - Stack Overflow javascript - react-router-dom, useHistory() function inside a class based component - Stack Overflow](https://i.stack.imgur.com/vlHof.png)
javascript - react-router-dom, useHistory() function inside a class based component - Stack Overflow
![Setting up routes in your React Application with react-router-dom — part 2/2 | by Alex Mendes | Medium Setting up routes in your React Application with react-router-dom — part 2/2 | by Alex Mendes | Medium](https://miro.medium.com/max/1200/1*iQq9k0efhM-_L71rZF3Ufg.png)