DEV Community

Cover image for React
Kumar Sanu
Kumar Sanu

Posted on


=> React is a JavaScript library created by Facebook.

=> React is a tool for building UI components

Babel is a JavaScript compiler that can translate markup or programming languages into JavaScript.

JSX stands for JavaScript XML.
JSX is an XML/HTML like extension to JavaScript.

*React Elements

React applications are usually built around a single HTML element.

React Components

React components are JavaScript functions.
This example creates a React component named "sanu":

function Welcome() {
return <h1>Hello React!</h1>;
ReactDOM.render(<Welcome />, document.getElementById('root'));

How to Create React Application

Make sure you have Node.js.
Otherwise you must install npx:

npx create-react-app demo
Enter fullscreen mode Exit fullscreen mode

npm i npx

C:\Users\sanus3175>npx create-react-app demo

Top comments (0)