Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commenting App.js #320

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apps/web/frontendnew/src/App.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
// Importing necessary components and hooks from react-router-dom for navigation and routing
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

// Importing individual page components to be used in routing
import Home from "./pages/Home/Home";
import Pricing from "./pages/Pricing/Pricing";
import Contact from "./pages/Contact/Contact";
import TopNav from "./components/Navbar/TopNav";
import Notes from "./pages/Notes/Notes";
import Login from "./pages/Login/Login";
import SignUp from "./pages/Login/SignUp";

// Importing the TopNav component which will be displayed across all pages
import TopNav from "./components/Navbar/TopNav";

// Defining the main App component
function App() {
return (
// Utilizing the BrowserRouter (alias Router) for enabling navigation between components
<Router>
{/* top nav */}
<TopNav />
Expand All @@ -24,4 +31,5 @@ function App() {
);
}

// Exporting the App component for use in the index.js file
export default App;
Loading