For any queries you can reach us at / WhatsApp us: +919158876092

React for Beginners | What is React?

What is React?

React is officially defined as a "JavaScript library for creating user interfaces," but what does that really mean?

React is a library, made in JavaScript and which we code in JavaScript, to build great applications that run on the web.

What do I need to know for React?

In other words, you do need to have a basic understanding of JavaScript to become a solid React programmer.

The most basic JavaScript concepts you should be familiar with are variables, basic data types, conditionals, array methods, functions, and ES modules,

If React was made in JavaScript, why don't we just use JavaScript?

While React was written in JavaScript, which was built from the ground up forthe express purpose of building web applications and gives us tools to do so.

JavaScript is a 20+ year old language which was created for adding small bits of behavior to the browser through scripts and was not designed for creating complete applications.

In other words, while JavaScript was used to create React, they were created for very different purposes.

Can use JavaScript in React applications

Yes! Any valid JavaScript code can be included within your React applications.

You can use any browser or window API, such as geolocation or the fetch API.

Also, since React (when it is compiled) runs in the browser, you can perform common JavaScript actions like DOM querying and manipulation.