Written by - Saksham Jain

Introduction


  • React is a declarative, efficient, flexible and a open-source JavaScript library for building user interfaces.
  • React lets you compose complex UIs from small and isolated pieces of code called “components”.
  • React is used to build single-page applications.

History

  • React was created by Jordan Walke (S.E. at Facebook).
  • It’s early prototype was called “FaxJS”.
  • React was first deployed on Facebook’s News Feed in 2011 and later it was used in Instagram in 2012.
  • It was open-sourced at JSConf US in May 2013.

Why should we use react?

  • It help us making single page applications easily.
  • Its components make code reusable and it also improves codes readability.
  • It can be used on server side as well as on client side.
  • It uses virtual DOM, which is faster then regular DOM, and it makes app faster.

Prerequisites

  • JavaScript/ECMAScript 2015
  • HTML5
  • CSS