I have been using the Auth0 guide to set up a react app and have got a very basic App.js with the Auth0-provider-with-navigate.js setup
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { BrowserRouter } from "react-router-dom";
import { Auth0ProviderWithNavigate } from "./auth0-provider-with-navigate";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<BrowserRouter>
<React.StrictMode>
<Auth0ProviderWithNavigate>
<App />
</Auth0ProviderWithNavigate>
</React.StrictMode>
</BrowserRouter>,
);
When I create a very simple Navbar with Login buttons, nothing appears in localhost at all and I can’t even get any basic Div elements to show. When I remove the wrapping of the <Auth0ProviderWithNavigate>
from App.js wrapped around then it renders fine. Please can someone help me?