What is React?
React is a JavaScript library for building user-interfaces. It is the view layer of web applications. React was created by Jordan Ealke, a software engineer at Facebook and open sourced it to the world by Facebook & Instagram. Broadly speaking, to write React applications, we write React components that correspond to various interface elements.
System Configuration
To install create-reacte-app, follow the below steps.
- Install node.js with version 14+ from node.js office site. Check the node version installed in your machine by
node -v
- Install create-react-app by running this command
npm install -g create-react-app
- Once the installation is done, create a React app using
npx create-react-app my-app
Here, my-app will be your application's name.
Forder Structure Description
- node_modules: All the modules dependencies are created in this folder
- public: Contains the public static assets of the application
- public/index.html: First page loaded, when you run the application
- src: All application related files are created in this folder
- src/index.js: Entry point of the application ## Features of React
- React is a small library
- React covers only the rendering and event handling part.
- Presentation code in JavaScript powered by JSX
- Code size is smaller hence it is faster than Angular etc.
- Flexible
- Virtual DOM
Top comments (0)