Welcome to Reactjs-with-Me! This repository is designed as a learning playground and starter kit for React.js enthusiasts. Whether you're a beginner or looking to level up your React skills, this project provides practical examples, reusable components, and a structured environment for hands-on learning.
- React.js Fundamentals: Code samples and exercises for core React concepts (JSX, components, props, state, hooks).
- Component Library: A collection of reusable UI components to accelerate your development.
- Project Structure: Organized and scalable folder structure to help you manage growing applications.
- Sample Pages: Example pages demonstrating real-world usage and best practices.
- Custom Hooks: Useful hooks for common tasks (fetching data, forms, etc.).
- Styling Options: Examples using CSS Modules, Styled Components, and traditional CSS.
- Tooling: Pre-configured with ESLint, Prettier, and recommended VSCode settings.
- Getting Started Guide: Step-by-step instructions for cloning, running, and customizing the project.
Reactjs-with-Me/
├── public/ # Static public assets
├── src/
│ ├── components/ # Reusable React components
│ ├── hooks/ # Custom React hooks
│ ├── pages/ # Example pages/views
│ ├── App.js # Main App component
│ ├── index.js # Entry point
│ └── ... # Other utilities and configs
├── .eslintrc.json # ESLint configuration
├── .prettierrc # Prettier configuration
├── package.json
└── README.md
- Node.js (v16 or above recommended)
- npm or yarn
-
Clone the repository
git clone https://github.com/muazimmaqbool/Reactjs-with-Me.git cd Reactjs-with-Me
-
Install dependencies
npm install # or yarn install
-
Start the development server
npm start # or yarn start
-
Open your browser
- Visit http://localhost:3000 to view the app.
Note: As of 2024,
npx create-react-app
is no longer the recommended way to create new React applications.
Instead, use Vite for a modern, fast, and simple React setup.
# 1. Scaffold a new Vite + React project
npm create vite@latest my-react-app -- --template react
# 2. Move into your project folder
cd my-react-app
# 3. Install dependencies
npm install
# 4. Start the dev server
npm run dev
- For TypeScript projects, replace
--template react
with--template react-ts
. - See the Vite documentation for more options and details.
npm start
/yarn start
– Start the development servernpm run build
/yarn build
– Build for productionnpm run lint
/yarn lint
– Run ESLintnpm run format
/yarn format
– Format code with Prettier
Contributions are welcome! Please open issues and submit pull requests for improvements, bug fixes, or additional examples. For major changes, please open an issue first to discuss what you’d like to change.
This project is licensed under the MIT License.
Happy coding! 🚀