Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • You say "I tried to open localhost:3000/err but, it will not got to NotFound component.". What do you get instead? I did just try to use your code (using "react-router-dom": "^4.3.1), and it works just fine (on localhost:3000/err I get "404 Page Not Found"). Commented Jan 15, 2019 at 13:57
  • @MarcoS i got Cannot GET /err Commented Jan 15, 2019 at 13:58
  • Does your project compile successfully? I.e.: do you get something like Compiled successfully! on your yarn start command? And, above all, something like You can now view my-app in the browser. ? Commented Jan 15, 2019 at 14:00
  • @MarcoS Yes. i 「wdm」: Compiled successfully. Commented Jan 15, 2019 at 14:01
  • Does localhost:3000/ works fine? Commented Jan 15, 2019 at 14:02