Is React is Library or Framework?

React is a JavaScript Library .
It is a JavaScript library for building UI.
It lets you make complex UIs from small pieces of code called components.
Components are piece of code which is designed on general level and we can use it again and again by changing its variable (which are known as props).

Note : React is not a JS Framework. It is a JS library.