muxt-ts is a NextJS app built with Typescript and MUI based on HPouyanmehr's repository but with ReactJS's useContext API to provide the context to the application globally. In this application, we will implement the context for theming where the user can toggle the themes (light/dark) with useContext's actions and getters.
First, clone the project.
HTTPS: git clone https://github.com/MrSrv7/muxt-ts-context.git
# or
SSH: git clone git@github.com:MrSrv7/muxt-ts-context.gitInstall the dependencies.
npm install
# or
yarn install
# or
pnpm installRun the development server.
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
This project uses next/font to optimize and load Inter, a custom Google Font automatically.
- ReactJS - Learn ReactJS features and API.
- Next.js Documentation - learn about Next.js features and API.
- MUI - Learn MUI (UI Library for ReactJS based on Google's Material guidelines)
- Typescript - Learn Typescript features and API