1. Some terms to get started with reactJS 🤓

Declarative and imperative:

👉Before we used to take input and for showing output we used to write for example .innerText or .innerHTML like that. Instead, we can just declare by telling app that this is how app should look and react will make it look and we don't have to write any of the .innerHTML and all. Here we don't have to tell the program what to do. If we have to tell it, then it is imperative.

👉So, React is declarative library in which you just tell the app how it will look and get your job done!

Component based:

👉React basically make small components so you can even make entire UI using those small small components. Benefit of that we can also reuse of that components. Suppose we have component of like button then we can reuse it and it still works the same thats why we have many of the component libraries available

Learn once,write anywhere:

👉So if you learn today about react, you can write about your app on multiple platforms.

2. Walk through react app and knowing ReactDOM: 🤓

👉Asking react that whatever is made in app.js, take all of it and put it inside the id root which is all done by react and reactDOM.

👉What reactDOM is used for?

👉Putting it on the browser. If you are using reactNative, it will not work as ReactDOM is only for the browser. But React is the core same in all

Point to be noted: 🤓

👉this is just like editing HTML, but see that file is not .html but .js

3. JSX 🤓