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

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

5

u/Not_a_spambot Sep 27 '17

Error boundaries are heeeeeere you guys I've been waiting for this for so long

3

u/demar_derozan_ Sep 27 '17

I'm really excited to see how asynchronous rendering works. Anyone know when that's going into beta/being released? The link says in the coming months..

3

u/Soccham Sep 27 '17

https://twitter.com/acdlite/status/909926793536094209

Here's a preview tweet from the article with an example of it working.

0

u/pureboy Sep 27 '17

No, Thanks.

0

u/[deleted] Sep 26 '17

[deleted]

8

u/[deleted] Sep 26 '17

No good sir, said license has been changed.

2

u/Soccham Sep 26 '17

yup, I'm just expecting complaints regardless even though I enjoy using all of the big 3.

4

u/[deleted] Sep 26 '17

Nobody complains on Reddit.

15

u/poop_city_paradise Sep 26 '17

More like insert snarky first comment without actually reading the updates :)