1- Basic Questions about React JS

 

What is React JS? 

A JavaScript library for building user interfaces.


Why is it used?

 React JS  is used for building user interfaces specifically for single-page applications.

 It is used for handling the view layer for web and mobile apps.

React also allows us to create reusable UI components.


Explain Single Page Application?

A single-page application (SPA) is a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of a web browser loading entire new pages

OR

In simple terms we can say once the page gets loaded, the server does not send any more HTML or CSS.

Basically after the page loads all the work after loading is done by virtual DOM(JavaScript Object)


What is the full form of DOM and Explain briefly

DOM: DOM stands for ‘Document Object Model.

In simple terms, it is a structured representation of the HTML elements that are present in a webpage or web-app. DOM represents the entire UI of your application. The DOM is represented as a tree data structure.


Who maintains it?

 It is maintained by Meta (formerly Facebook) and a community of individual developers and companies.


What is the main idea behind React JS?

The main idea behind react JS is to break your site into pieces called components and making them piece by piece and rendering(display the specified HTML code inside the specified HTML elementthem according to our requirements.


Advantages of React JS

Some advantages of React are-


Composable:

 Combining parts or elements to form a whole.


Declarative:

We can make interactive UIs by changing the state of the component and React takes care of updating the DOM according to it


Write once, learn anywhere:

Developing new features in React without re-writing the existing code.


It is simple:

 The component-based approach, automatic rendering, and use of just plain JavaScript make React very simple to learn.

React only requires need a basic knowledge of HTML and CSS fundamentals to start working with it.


SEO friendly:

 React affects the SEO by giving you a SPA (Single Page Application) which requires Javascript to show the content on the page which can then be rendered and indexed.


Fast, efficient, and easy to learn:

 It contains pre-built patterns and functions that can be chosen and combined like building blocks to create fast, appealing, and scalable projects in less time as compared to designing the entire application line by line.




Comments