Vishesh 'ironeagle' Bangotra 2c18c7258b refactor(auth): extract auth into shared package and unify auth flow
- 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
2025-12-26 00:56:23 +05:30
2025-10-27 17:25:02 +05:30
2025-10-27 17:25:02 +05:30
2025-10-27 17:49:38 +05:30
2025-10-27 17:25:02 +05:30

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:

Edit on CodeSandbox

Edit on StackBlitz

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
No description provided
Readme 1.8 MiB
Languages
TypeScript 98.2%
JavaScript 0.8%
Dockerfile 0.5%
HTML 0.5%