Skip to content

Instantly share code, notes, and snippets.

@davewadestein
Last active August 11, 2023 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davewadestein/f2380f90ab261cc63cc5b148c0b6f8b0 to your computer and use it in GitHub Desktop.
Save davewadestein/f2380f90ab261cc63cc5b148c0b6f8b0 to your computer and use it in GitHub Desktop.

How does React differ from other frontend frameworks/libraries?

Virtual DOM React introduces the virtual DOM, which is essentially a lightweight copy of the actual DOM that is used to optimize the performance of updating and rendering user interfaces. If you'd like to read up on the VDOM feel free but we'll dig into this concept later in the course a bit more!

Even more text!
Component-Based Architecture React allows us to use a modular approach to UI development through components. Each component encapsulates its own logic, styles, and functionality, making it easier to reuse and maintain code.
Unidirectional Data Flow React enforces a unidirectional data flow, where data flows from parent components to child components. This simplifies data management and reduces side effects, making it easier to debug and reason about the application's behavior (we will dig into this a bit more when we dive deeper into state management and props).
JSX React uses JSX (JavaScript XML) syntax, which allows developers to write UI components using a syntax similar to HTML. This combination of JavaScript and HTML-like syntax makes it more intuitive to work with UI elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment