React.js is an open-source JavaScript library for building user interfaces or UI components. before you start learning react you should have knowledge in html, css and JavaScript. Hence react is used to manipulate html and css just like JavaScript, and here opens a question?
why use react?
we use react for couple of reasons first react is fast. second react uses components which is easy to reuse in your code late and third it's efficient way using declarative code is just beautiful.
SO, let's start by making our first hello world App. I will use an online IDE for now called fiddlejs
step one: open fiddlejs
step two: choose react
step three: now let's render a hello world from react. how to do that?
ReactDOM.render(<h1>hello world!</h1>,document.getElementById("app"))
ReactDOM.render helps you render any html in the place you choose for example you will be having a div with an id app that you want it to have an h1 that displays helloworld the code goes like this
ReactDOM.render(WHAT YOU WANT TO RENDER,WHERE YOU WANT TO RENDER IT))
That was short... Lol I was expecting more that just that in the sense that nothing is explained really...