path react router code example
Example 1: react route
npm install react-router-dom
Example 2: react-router-dom
npx create-react-app demo-app
cd demo-app
npm install react-router-dom
npx create-react-app demo-app
cd demo-app