skip to Main Content

Reactjs – When I try to open the Default path, It's showing a blank white page instead of rendering both header and home components one after other

import React from "react"; import "./App.css"; import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Home from "./Home"; import Header from "./Header"; function App() { return ( <div className="app"> <Router> <Routes> <Route path="/"> <div> <Header /> <Home />…

VIEW QUESTION
Back To Top
Search