r/webdev • • Sep 26 '17

React 16

https://facebook.github.io/react/blog/2017/09/26/react-v16.0.html
109 Upvotes

13 comments sorted by

View all comments

38

u/Soccham Sep 26 '17

tl;dr

  • Changed to MIT License

  • Render function can now return fragments/arrays and strings

  • Portals built in

  • Better Error handling + error boundaries

  • custom DOM attribute support

  • Smaller file size (react + react dom are 109kb/34.8kb gzipped, down from 161.7kb/49.8kb gzipped)

  • Better server-side rendering (completely rewritten server renderer, 3x faster)

  • New Core Architecture, same client facing API

5

u/Uknight Sep 27 '17

Portals are dope. /u/ryanflorence talked about them all the way back in Feb 2015

4

u/[deleted] Sep 27 '17

tl:dr on portals?

3

u/Uknight Sep 27 '17

Render a component somewhere else in the DOM, instead of where it is in the component hierarchy.

2

u/chrisrazor Sep 27 '17
Syntax error. ';' expected