Created
January 10, 2022 14:32
-
-
Save caponetto/e4badb1303427b5d5b1da9801b91ce1a to your computer and use it in GitHub Desktop.
Teachable Machine Playground (App.tsx)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function App() { | |
return ( | |
<HashRouter> | |
<AppProvider> | |
<Routes> | |
<Route path={routes.nav.root.path} element={<Navigate to={routes.nav.home.path} />} /> | |
<Route path={routes.nav.home.path} element={<HomePage />} /> | |
<Route path={routes.nav.nbd.path} element={<NailBitingDetectorPage />} /> | |
{/* Your new route goes here */} | |
<Route path="*" element={<Navigate to={routes.nav.home.path} />} /> | |
</Routes> | |
</AppProvider> | |
</HashRouter> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment