This is a starter template for a React application. It includes basic components, pages, layout, and settings to kickstart your project.
- Main: The main page of the application.
- Login: Login page for user authentication.
- Register: Registration page for new users.
- Home: Home page of the application.
- About: About page providing information about the application or company.
- Contact Us: Contact page for user inquiries.
A reusable button component with dynamic background color based on the parent element's background color.
A loading spinner component to indicate processing or loading state.
The layout includes a footer and navbar across all pages for consistent navigation and branding.
Toast notifications are configured using the react-toastify
library to provide user feedback and notifications.
{
"name": "react-template",
"version": "0.1.0",
"private": true,
"dependencies": {
"@craco/craco": "^7.1.0",
"@headlessui/react": "^2.0.3",
"@heroicons/react": "^2.1.3",
"@reduxjs/toolkit": "^2.2.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.6.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-redux": "^9.1.2",
"react-router-dom": "^6.23.1",
"react-scripts": "5.0.1",
"react-toastify": "^10.0.5",
"redux-persist": "^6.0.0",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3"
}
}
- Clone the repository.
- Install dependencies using
npm install
. - Start the development server using
npm start
. - Build the production version using
npm run build
.
Contributions are welcome! Please feel free to fork this repository and submit pull requests with any improvements, bug fixes, or new features.
This React template was created by Muhammad Ali . You can find more about me on my website or GitHub.
This project is licensed under the MIT License.