ESenav

React.js Tutorial for 2025

Master modern React with practical projects, step-by-step guides, and interactive examples.

1 of 12 lessons (8% complete) 1h 38m total

Getting Started with React

// Create a React App
npx create-react-app my-app
cd my-app
npm start

Begin with a basic React project structure. This command sets up a new app with all dependencies ready to use.

  • React 18+

    Modern features like React Server Components

  • JSX Support

    Use HTML-like syntax in JavaScript files

  • TypeScript Enabled

    Full static typing support

Master Advanced React

  • 1. Components and Props

    function Card({ title, children }) {
        return (
            

    {title}

    {children}
    ) }

    Components enable reusable UI elements. This Card component accepts title and children props.

  • 2. State and Lifecycle

    import { useState, useEffect } from 'react';
    
    function Counter() {
        const [count, setCount] = useState(0);
        
        useEffect(() => {
            document.title = `You clicked ${count} times`;
        }, [count]);
    
        return (
            

    You clicked {count} times

    ); }

    State management allows us to handle dynamic data. Use useEffect for lifecycle hooks.

Build a Todo App

Final Application Features

  • ✅ Add new todos
  • ✅ Mark todos as complete
  • ✅ Delete todos
  • ✅ localStorage persistence

Project Preview

React todo app preview
🔗 Project Code on GitHub

You've Learned!

  • 📦 Component-based architecture
  • 🔄 State and props management
  • ⚛️ JSX syntax patterns
  • 🔁 React lifecycle concepts