Skip to content

Latest commit

Β 

History

History
110 lines (83 loc) Β· 2.84 KB

File metadata and controls

110 lines (83 loc) Β· 2.84 KB
# React A modern React-based project utilizing the latest frontend technologies and tools for building responsive web applications. ## πŸš€ Features - **React 18** - React version with improved rendering and concurrent features - **Vite** - Lightning-fast build tool and development server - **Redux Toolkit** - State management with simplified Redux setup - **TailwindCSS** - Utility-first CSS framework with extensive customization - **React Router v6** - Declarative routing for React applications - **Data Visualization** - Integrated D3.js and Recharts for powerful data visualization - **Form Management** - React Hook Form for efficient form handling - **Animation** - Framer Motion for smooth UI animations - **Testing** - Jest and React Testing Library setup ## πŸ“‹ Prerequisites - Node.js (v14.x or higher) - npm or yarn ## πŸ› οΈ Installation 1. Install dependencies: ```bash npm install # or yarn install ``` 2. Start the development server: ```bash npm start # or yarn start ``` ## πŸ“ Project Structure ``` react_app/ β”œβ”€β”€ public/ # Static assets β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ components/ # Reusable UI components β”‚ β”œβ”€β”€ pages/ # Page components β”‚ β”œβ”€β”€ styles/ # Global styles and Tailwind configuration β”‚ β”œβ”€β”€ App.jsx # Main application component β”‚ β”œβ”€β”€ Routes.jsx # Application routes β”‚ └── index.jsx # Application entry point β”œβ”€β”€ .env # Environment variables β”œβ”€β”€ index.html # HTML template β”œβ”€β”€ package.json # Project dependencies and scripts β”œβ”€β”€ tailwind.config.js # Tailwind CSS configuration └── vite.config.js # Vite configuration ``` ## 🧩 Adding Routes To add new routes to the application, update the `Routes.jsx` file: ```jsx import { useRoutes } from "react-router-dom"; import HomePage from "pages/HomePage"; import AboutPage from "pages/AboutPage"; const ProjectRoutes = () => { let element = useRoutes([ { path: "/", element: }, { path: "/about", element: }, // Add more routes as needed ]); return element; }; ``` ## 🎨 Styling This project uses Tailwind CSS for styling. The configuration includes: - Forms plugin for form styling - Typography plugin for text styling - Aspect ratio plugin for responsive elements - Container queries for component-specific responsive design - Fluid typography for responsive text - Animation utilities ## πŸ“± Responsive Design The app is built with responsive design using Tailwind CSS breakpoints. ## πŸ“¦ Deployment Build the application for production: ```bash npm run build ``` ## πŸ™ Acknowledgments - Built with [Rocket.new](https://rocket.new) - Powered by React and Vite - Styled with Tailwind CSS Built with ❀️ on Rocket.new # Constrops