Skip to content

Instantly share code, notes, and snippets.

@didi0613
Last active November 14, 2017 20:30
Show Gist options
  • Save didi0613/bbee098ed6b356a811b73cf54d3e3790 to your computer and use it in GitHub Desktop.
Save didi0613/bbee098ed6b356a811b73cf54d3e3790 to your computer and use it in GitHub Desktop.
Upgrade internal archetype app to react 16

Upgrade wml internal App to React 16 instruction

Why React 16

React 16 roughly three times faster than React 15, it includes few long-standing requested features:

  • fragments: return an array of elements from a component’s render method.
  • error boundaries: better error handling.
  • portals: a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component
  • support for custom DOM attributes: instead of ignoring unrecognized HTML and SVG attributes, React will now pass them through to the DOM.
  • improved server-side rendering: supports streaming, so you can start sending bytes to the client faster; a new packaging strategy that compiles away process.env checks.
  • reduced file size: React now uses Rollup to create flat bundles for each of its different target formats, resulting in both size and runtime performance wins.

Instructions to upgrade to React 16

Upgrade internal archetype app to v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment