Reusable Components
  • References/JavaScript/React/Guides

When designing interfaces, break down the common design elements (buttons, form fields, layout components, etc.) into reusable components with well-defined interfaces. That

2025-01-10 15:47:30
React.Component
  • References/JavaScript/React/React

React.Component class Component This is the

2025-01-10 15:47:30
React.DOM
  • References/JavaScript/React/React

React.DOM React.DOM provides convenience wrappers around React.createElement for DOM components. These should only

2025-01-10 15:47:30
Value of null for Controlled Input
  • References/JavaScript/React/Tips

Specifying the value prop on a controlled component prevents the user from changing the input unless

2025-01-10 15:47:30
Reconciliation
  • References/JavaScript/React/Reference

React's key design decision is to make the API seem like it re-renders the whole app on every update. This makes writing applications a lot easier but is also an incredible

2025-01-10 15:47:30
React (Virtual) DOM Terminology
  • References/JavaScript/React/Reference

In React's terminology, there are five core types that are important to distinguish: ReactElement / ReactElement Factory ReactNode

2025-01-10 15:47:30
React.Children.map
  • References/JavaScript/React/React

React React is the entry point to the React library. If you're using one of the prebuilt packages it's available

2025-01-10 15:47:30
Inline Styles
  • References/JavaScript/React/Tips

In React, inline styles are not specified as a string. Instead they are specified with an object whose key is the camelCased version of the style name, and whose value is the

2025-01-10 15:47:30
Displaying Data
  • References/JavaScript/React/Guides

The most basic thing you can do with a UI is display some data. React makes it easy to display data and automatically keeps the interface up-to-date when the data changes.

2025-01-10 15:47:30
propTypes
  • References/JavaScript/React/Component

propTypes object propTypes The propTypes

2025-01-10 15:47:30