Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 5.09 KB

README.md

File metadata and controls

76 lines (52 loc) · 5.09 KB

React Explainer


🔮 Overview

React.JS is a frontend framework that utilizes a virtual DOM and JSX to build a component based UI.

React is an open source javascript library developed internally at Facebook to build scalable UIs - the internal tagline was "build once, use everywhere." Components are built to be reused, and also scale to mobile via React Native.


History of React

React was developed internally at Facebook to lower development issues around UI structures on their frontend.

Frontend UIs are hard to test, making them hard to reuse accross teams. This became a larger point of interest for Facebook with the Instagram and WhatsApp acquitions, followed by the push for Facebook Messenger growth. The development team needed a way to better standardize not just their styling, but their UI rules and functionality.

Why does the history of React matter? Because the history informs alot of how and why we currently use React, and also the future of React and frameworks built on top of React.

📆 React Development Timeline:


💻 Frontend Frameworks

React is a Frontend Framework - what does that even mean?

What is a Frontend Framework? A frontend framework is pre-written code that will typically include a build system and constructors to build out frontend UIs.

What is the difference between a Frontend Framework and HTML/CSS/Javascript? HTML/CSS/Javascript apps (also known as "vanilla web apps") are loaded and rendered by our web browsers (Chrome, Firefox, Safari, etc.). Frontend framework apps take your code and either apply pre-written code to render on the frontend (Example: Bootstrap), or run a script on Node to build a version of the app that is HTML/CSS/JS.

What are some other Frontend Frameworks? Other popular frontend frameworks include:


Class Based Components vs Functional Components

With the release of React 16.8, there are now two ways to declare components in React: Class Based or Functionally.

Most major updates to languages or frameworks take multiple years for popular adoption to start, but with React, because the update was easy to implement and a substantial improvement in preformance/readability, popular adoption started almost imediately.

This means a lot of companies are actively updating their React codebases to use functional components from class based ones; others continue to use class based components, and others, still, started with functional components entirely.

Class Based Component Functional Component
Class Based Component Example Functional Component Example
How components were written pre-release of hooks and functional components in React 16.8. Components declared in function declerations; able to use hooks. Introduced in 2018, popular adoption started Spring 2019.

Extra Resources

Quick hit of extra resources for those interested in learning more about React (both the technical and the non-technical):


This markdown was written by Anna Zocher.