I tried to install the dependecies using terminal and this command: npm install –save react-router-dom
In index.js file i imported React and ReactDOM and this command to render to index.html:
In index.html at the bottom of body there’s link to .js script.
Before doing this i used to add script to import React in the of document and everything was fine. Now i got only a blank page.
Hope someone can help me.
Leave an answer