React Tutorial (original) (raw)

Last Updated : 18 Apr, 2025

React is a **JavaScript Library known for front-end development (or user interface). It is popular due to its **component-based architecture, Single Page Applications (SPAs), and Virtual DOM for building web applications that are fast, efficient, and scalable.

**Note: The latest stable version of React is 19.1.0.

React Hello World Program

To start with React, you need to install it. Follow the steps below to install it on your system.

  1. How to Install ReactJS on Windows
  2. How to Install ReactJS on MacOS
  3. How to Install ReactJS on Linux

After installing React, let's write your first React program. Here's a simple code example:

JavaScript `

import React from 'react';

function App() { return (

Hello World

); }

export default App;

`

**In this example:

**Why Learn React?

React, the popular JavaScript library, offers several exciting reasons for developers to learn it.

**React Tutorial Prerequisites: HTML, CSS and JavaScript

Getting Started with React: A Beginner’s Guide

This React tutorial provides you with a step-by-step learning journey for mastering php. You will start with React fundamentals and then move on to advanced topics. By the end of this tutorial, you will have a solid foundation in React and be ready to build scalable and maintainable web applications.

1. React Basics

2. React Hooks

Different hooks to access and mange state and lifecycle in functional components.

**3. React DOM Events

Handle DOM events in react like mouse, keyboard and form events.

**4. Lifecycle of Components

The lifecycle of react components from creation, mounting and unmounting to manage the different phases.

5. Routing in React

Manage navigation and routing within the single page application.

6. Important React Packages

Additional libraries for styling and state management to enhance your react projects.

7. React Interview Questions

React Interview questions categorised for different levels including most asked questions.

8. React Online Quizs

Test and Improve your knowledge with the well organised React Quizs

9. React Online Practice Exercise

Embark on your React learning journey with our online practice portal. Start by selecting quizzes tailored to your skill level. Engage in hands-on coding exercises, receive real-time feedback, and monitor your progress. With our user-friendly platform, mastering React becomes an enjoyable and personalized experience.

Elevate your coding expertise by going through our carefully curated Free Online React Exercises.

10. React Complete References

Refer to the following articles to have a quick glance at all the important key concepts which are helpful while developing web applications using React

If you want to have a simple, quick reference to commonly used React methods you can refer to ReactJS Cheat Sheet article

**Advantages of React

If you want to learn more refer to this article React JS Advantages

Best Approach to Learn React

You can complete this React tutorial in approximately 8 weeks with consistent learning and hands-on practice.

By the end of 8 weeks, you’ll be proficient in React and ready to build dynamic web applications.

React vs Angular

Below is the difference between the React and Angular.

React Angular
It is a Library It is a Framework
Developed by Facebook Developed by Google
One-way data binding Two-way data binding
Easier to learn, more flexible Steeper learning curve, more structured
Faster with more customization options Slower, but offers a complete solution
Component-based architecture MVC (Model-View-Controller) architecture

List of Companies Using React

These are some popular companies that use React in their workflow:

Company Description
Facebook React was developed by Facebook and is widely used for their web and mobile applications.
Instagram Instagram, owned by Facebook, uses React for the front-end of its web application.
Netflix Uses React to build user interfaces for its streaming platform to ensure a fast, responsive experience.
Airbnb Uses React to develop dynamic user interfaces for their booking platform.
Uber Uber uses React for building its interactive and high-performance web interfaces.
WhatsApp Web WhatsApp uses React to create the web version of its messaging platform.
Atlassian Atlassian, the creator of tools like Jira and Confluence, uses React for its web applications.
Dropbox Dropbox uses React to enhance the performance and interactivity of its web-based file storage system.
Spotify Spotify uses React for building its interactive UI components for both web and mobile platforms.
New York Times The New York Times uses React to manage its dynamic content on the web.

Career & Jobs in React

React offers a wide range of career opportunities, as it is one of the most popular front-end libraries used in web development, particularly for building dynamic and responsive user interfaces. React is widely adopted for both web and mobile applications, making it a highly sought-after skill in the industry. Here are some top career paths for React developers:

Career Average Salary (INR) Per Annum Average Salary (USD) Per Annum
React Developer ₹6,00,000 - ₹15,00,000 10,000−10,000 - 10,00040,000
Frontend Developer (React) ₹5,00,000 - ₹12,00,000 8,000−8,000 - 8,00035,000
React Native Developer ₹7,00,000 - ₹16,00,000 12,000−12,000 - 12,00045,000
Full Stack Developer (React) ₹8,00,000 - ₹18,00,000 12,000−12,000 - 12,00050,000
UI/UX Developer (React) ₹5,50,000 - ₹13,00,000 9,000−9,000 - 9,00040,000