Getting a blank page after running npm start. There are no messages in the console. I have tried setting the "homepage":"." in the package.json file but it did not work. Here's a link to the github repo: github repo
CodePudding user response:
In App.js, change component to element and you need render the component inside of props:
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import React from "react";
import Chat from "./components/Chat/Chat.js";
import Join from "./components/Join/Join.js";
const App = () => {
<Router>
<Routes>
<Route path="/" exact element={<Join/>} />
<Route path="/chat" element={<Chat/>} />
</Routes>
</Router>;
};
export default App;
CodePudding user response:
I had this problem until just now--then I turned off my VPN.
- Turn off VPN
- restart your app
- (npm start) let us know if it works