World Library  
Flag as Inappropriate
Email this Article

React (JavaScript library)

Article Id: WHEBN0044926137
Reproduction Date:

Title: React (JavaScript library)  
Author: World Heritage Encyclopedia
Language: English
Subject: Mailjet, Localize (company), Web application development, Ajax (programming), The Facebook Effect
Collection: Ajax (Programming), Facebook Software, Rich Internet Application Frameworks, Software Using the Bsd License
Publisher: World Heritage Encyclopedia

React (JavaScript library)

React.js logo
Original author(s) Jordan Walke
Developer(s) Facebook, Instagram and community
Initial release 2013 (2013)
Stable release 0.14.0 / October 7, 2015 (2015-10-07)
Development status Active
Written in JavaScript
Platform Cross-platform
Size 128 KiB production
559 KiB development
Type JavaScript library
License BSD License + Patents Clause
Website .comreactjs

React (sometimes styled React.js or ReactJS) is an open-source JavaScript library for creating user interfaces that aims to address challenges encountered in developing single-page applications. It is maintained by Facebook, Instagram and a community of individual developers and corporations.[1][2][3]

React is intended to help developers build large applications that use data that changes over time. Its goal is to be simple, declarative and composable. React only handles the user interface in an app; it is considered to only be the view in the model–view–controller (MVC) software pattern, and can be used in conjunction with other JavaScript libraries or larger MVC frameworks such as AngularJS. It can also be used with React-based add-ons that take care of the non-UI parts of building a web application.

According to JavaScript analytics service Libscore, React is currently being used on the homepages of Imgur, Bleacher Report, Feedly, Airbnb, SeatGeek, HelloSign, and others.[4]


  • History 1
  • Features 2
    • Vanilla JavaScript 2.1
    • One-way data flow 2.2
    • Virtual DOM 2.3
    • Server-side rendering (JavaScript isomorphism) 2.4
  • References 3
  • External links 4


React was created by Jordan Walke, a software engineer at Facebook. He was influenced by XHP, an HTML components framework for PHP.[5]


Vanilla JavaScript

Rather than re-inventing the wheel, React makes use of a developer's knowledge of JavaScript. For example, to output a component for each item in an array, you can use a vanilla for loop, Array.forEach, or - rather than a custom "each" construct. This applies to almost everything about React, which can be seen by viewing React's small API.[6]

React relies on features already available in JavaScript for most of what it does; this ensures that the React API is as lightweight as possible. This also allows them to inherit ECMAScript updates without large amounts of wrapper code that needs to be updated to match, as with many other frameworks and libraries.

One-way data flow

React removes the complexity of two-way data binding by embracing one-way data flow. When the props on a React component are updated, that component is re-rendered.

Virtual DOM

React maintains a virtual DOM of its own, rather than relying solely on the browser's DOM. This allows the library to determine which parts of the DOM have changed by diffing the new version with the stored virtual DOM, and using the result to determine how to efficiently update the browser's DOM.[7][8]

Server-side rendering (JavaScript isomorphism)

Server-side rendering is a very important and unique feature of React. Isomorphism of ReactJS is one of the main differentiation from AngularJS. This feature is especially important for high-traffic websites where the user experience (mainly web-page speed loading) must be a top-notch.[9] Companies like Netflix or PayPal are using Isomorphic ReactJS in production.[10][11]


  1. ^ "React: Making faster, smoother UIs for data-driven Web apps". InfoWorld. 
  2. ^ "Facebook's React JavaScript User Interfaces Library Receives Mixed Reviews". InfoQ. 
  3. ^ "JavaScript’s History and How it Led To ReactJS". The New Stack. 
  4. ^ "Libscore". 
  5. ^ "React (JS Library): How was the idea to develop React conceived and how many people worked on developing it and implementing it at Facebook?". Quora. 
  6. ^ "Top-Level API | React". Retrieved 2015-10-09. 
  7. ^ "An Introduction to React.js". Instrument. 
  8. ^ "Working With the Browser". React. 
  9. ^ "ReactJS". 
  10. ^ "PayPal Isomorphic React". 
  11. ^ "Netflix Isomorphic React". 

External links

  • List of React resources – AwesomeReact
  • Using Web Components with React – Maple.js
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.