=> React is a JavaScript library created by Facebook.
=> React is a tool for building UI components
Babel
Babel is a JavaScript compiler that can translate markup or programming languages into JavaScript.
JSX
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
npm i npx
C:\Users\sanus3175>npx create-react-app demo
Top comments (0)