Getting Started - React

Getting Started React

What is React ?

Getting Started React — React (also known as ReactJS) is developed by Facebook to create user interfaces for the web. React was invented by Jordan Walke, who was working at Facebook Ads at the time. It’s used for handling the view layer for web and mobile apps. React also allows us to create reusable UI components.

Create React App

Getting Start React — Create your first React App with the following example :

npx create-react-app project1 cd project1 npm start // run this command in your terminal

Hello World! in React

Write this code in your App.js file.

import React from "react"; function App() { return ( <div> <h1> Hello World! </h1> </div> ); } export default App;

Output :

React hello world program

Getting Started React Js :

👉 congratulations for your first React App. 😎

I hope you like this article.

Also Read :

The only way to win is to learn faster than anyone else.

_ ERIC RIES