r/javascript • • Sep 26 '17

React 16

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

63 comments sorted by

View all comments

83

u/batmansmk Sep 26 '17

It's an impressive release. Here is the gist: Among the changes are some long-standing feature requests, including:

  • fragments,

  • error boundaries,

  • portals,

  • support for custom DOM attributes,

  • improved server-side rendering,

  • reduced file size

  • MIT license,

  • Fiber

2

u/rottenanon Sep 27 '17

fragments

In the blog they mention, "now you can return an array from render". Wasn't this always the case? :-/

I understand returning from string render is new, but could someone tell me what else is new in fragments?

9

u/Savageman Sep 27 '17

Until now every render needed a single top-level HTML element.