How can I check if `react-router-dom` is correctly installed?

Question

Grade: Education Subject: Support
How can I check if `react-router-dom` is correctly installed?
Asked by:
61 Viewed 61 Answers

Answer (61)

Best Answer
(291)
You can check by looking in your `node_modules` directory for a folder named `react-router-dom`. Also, verify that the `react-router-dom` package is listed in your `package.json` file under the `dependencies` section. You can also try importing it in a simple component to see if it works.