2c18c7258b7ab069f8236dd6c48d573d1cbb688b
- Introduce new @local/auth package with token store, axios helpers, auth client, and AuthPage UI - Unify login/register into a single AuthPage with mode switching - Centralize JWT handling via tokenStore and axios interceptors - Remove direct localStorage token access from blog app - Replace blog Login/Register views with single auth view - Update router (View, VIEW_TREE, VIEW_URL) to support unified auth view - Fix hook usage by lifting useAuth() to top-level and passing via props - Refactor Blog view navigation to support auth mode routing - Clean up ArticleProvider to rely on auth state, not tokens - Align AuthProvider to delegate token management to auth package - Remove legacy Login/Register components and props - Normalize API client creation via shared createApiClient - Improve type safety and state consistency across auth/article flows
Material UI - React Router example in TypeScript
How to use
Download the example or clone the repo:
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-react-router-ts
cd material-ui-react-router-ts
Install it and run:
npm install
npm run dev
or:
The idea behind the example
This example demonstrates how you can use Material UI with React Router in TypeScript.
It includes @mui/material and its peer dependencies, including Emotion, the default style engine in Material UI.
What's next?
You now have a working example project. You can head back to the documentation and continue by browsing the templates section.
Description
Languages
TypeScript
98.2%
JavaScript
0.8%
Dockerfile
0.5%
HTML
0.5%