Skip to content

Instantly share code, notes, and snippets.

@caponetto
Created January 10, 2022 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caponetto/e4badb1303427b5d5b1da9801b91ce1a to your computer and use it in GitHub Desktop.
Save caponetto/e4badb1303427b5d5b1da9801b91ce1a to your computer and use it in GitHub Desktop.
Teachable Machine Playground (App.tsx)
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