Skip to content

muazimmaqbool/Reactjs-with-Me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactjs-with-Me

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.


🚀 Features

  • 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.

🏗️ Project Structure

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

🛠️ Getting Started

Prerequisites

  • Node.js (v16 or above recommended)
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/muazimmaqbool/Reactjs-with-Me.git
    cd Reactjs-with-Me
  2. Install dependencies

    npm install
    # or
    yarn install
  3. Start the development server

    npm start
    # or
    yarn start
  4. Open your browser


⚡ New Way to Create a React Project (2024+)

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.

Creating a New React App with Vite

# 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.

📦 Scripts

  • npm start / yarn start – Start the development server
  • npm run build / yarn build – Build for production
  • npm run lint / yarn lint – Run ESLint
  • npm run format / yarn format – Format code with Prettier

💡 Contributing

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.


📄 License

This project is licensed under the MIT License.


🙌 Acknowledgements


Happy coding! 🚀

Releases

No releases published

Packages

No packages published

Languages