Promise as React element type

For fun, here’s a proof-of-concept based on an idea by @sebmarkbage.
If a promise is passed to React.createElement, on initial mount, React waits for the promise to resolve to a React element type….

Similar

React, “Diffing” and the DOM

The DOM (Document Object Model) is an interface that represents an HTML document in a tree-like structure with nodes. This structure allows the document to be traversed and modified by programmers with each node being represented as an object. The DOM is ... (more…)

Read more »

Ask a Lead Dev: React Native or Ionic?

Hi there, I'm Eric Horodyski, the newest Solutions Architect here at Ionic. Before joining the team here, the previous five years of my professional career was spent as a Lead Developer building dozens of hybrid mobile applications, some in React Native, ... (more…)

Read more »