Vishesh 'ironeagle' Bangotra bb9c411c92 refactor(auth): separate auth and author responsibilities and centralize auth client creation
- Replace manual axios auth client with createApiClient in auth context
- Decouple domain author logic from auth provider
- Make AuthorModel extend AuthUser explicitly
- Route login/register/logout exclusively through auth package
- Derive application-level currentUser from auth identity
- Fix provider hierarchy and hook usage across Blog and Profile
- Align main.jsx to use base AuthProvider + AuthorProvider layering
2025-12-28 19:48:43 +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%