React JS Introduction

What is React?

React is a JavaScript library for building user interfaces.

React is used to build single-page applications.

React allows us to create reusable UI components.

React, sometimes referred to as a frontend JavaScript framework, is a JavaScript library created by Facebook.

React is a tool for building UI components.

Component Based Library.

React.JS History

  • Current version of React.JS is V18.0.0 (April 2022).

  • Initial Release to the Public (V0.3.0) was in July 2013.

  • React.JS was first used in 2011 for Facebook's Newsfeed feature.

  • Facebook Software Engineer, Jordan Walke, created it.

  • Current version of create-react-app is v5.0.1 (April 2022).

  • create-react-app includes built tools such as webpack, Babel, and ESLint.

Why Would You Use React?

  • Structre the "views" of your application

  • Reusable components with their own state

  • JSX-Dynamic markup

  • Interactive UIs with Virtual DOM

  • Perfomance & Testing

  • Very popular in the industry

Create React App

npx create-react-app my-react-app

Run the React Application

Run this command to move to the my-react-app directory

cd my-react-app

Run this command to execute the React application my-react-app

npm start