Search code examples
reactjsjsxpeer-dependencies

How to run a react project when react is added as peer dependency


I'm trying to run a repo from Github locally. The folder structure for react is somewhat different what what I usually see in a react project(I'm new to react). the folder structure is like

-index.js
-css folder
-jsx folder - components
-jsx folder - index.html
-jsx folder - index.js

Also react is added as a peer dependency. I'm not sure how to run this repository. Any help is much appreciated

React in package.json

"peerDependencies": {
    "react": "^16.3.0",
    "react-dom": "^16.3.0",
    "react-router-dom": "^5.1.2"
}

enter image description here


Solution

  • It was library files. So I had to create a new project using create-react-app and install the library in my new project and then make changes.