Skip to main content

  • Within a promise, any error that is thrown is swallowed up and treated as the promise rejecting. This means we have to catch the error to see it
  • Another important point is that there's nothing special about catch. It's just a method to register a handler for when a promise rejects. It doesn't stop further execution
  • When you return something from a "then" callback, it's a bit magic. If you return a value, the next "then" is called with that value. However, if you return something promise-like, the next "then" waits on it, and is only called when that promise settles (succeeds/fails)

  • Views are React components. They're responsible for rendering interfaces and handling user events. Their data is obtained from the Stores.
  • Stores manage data. A single Store manages data for a single domain. When a Store changes its data, it notifies the Views.
  • The Dispatcher receives new data and passes it to the Stores. Stores update their data (when applicable) and inform the Views.

4 more annotations...

  • React elements are JavaScript objects which represent HTML elements. They do not exist in the browser. They represent browser elements such as an h1, div or section.
  • Components are developer created React elements. They're usually larger parts of the user interface which contain both the structure and functionality
  • JSX is a technique for creating React elements and components.

5 more annotations...

1 - 20 of 2171 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo