![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
![ReactJS router + component hierarchy when swapping out components with route changes - Stack Overflow ReactJS router + component hierarchy when swapping out components with route changes - Stack Overflow](https://i.stack.imgur.com/pT4Ee.png)
ReactJS router + component hierarchy when swapping out components with route changes - 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/v2/resize:fit: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: undefined. You likely forgot to export your component from the file it's defined in, Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in,](https://user-images.githubusercontent.com/12425983/38729586-0cf1f6d2-3f46-11e8-8133-34e065256110.png)