MCPcopy Create free account
hub / github.com/codebucks27/react-portfolio-final / App

Function App

src/App.jsx:15–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13import SoundBar from "./subComponents/SoundBar";
14
15function App() {
16 const location = useLocation();
17 return (
18 <>
19 <GlobalStyle />
20
21 <ThemeProvider theme={lightTheme}>
22 <SoundBar />
23
24 <AnimatePresence mode="wait">
25 <Routes key={location.pathname} location={location}>
26 <Route path="/" element={<Main />} />
27 <Route path="/about" element={<AboutPage />} />
28 <Route path="/blog" element={<BlogPage />} />
29 <Route path="/work" element={<WorkPage />} />
30 <Route path="/skills" element={<MySkillsPage />} />
31 {/* Catch-all: send unknown routes to Main */}
32 <Route path="*" element={<Main />} />
33 </Routes>
34 </AnimatePresence>
35 </ThemeProvider>
36 </>
37 );
38}
39
40export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected