81

React v16.2.0: Improved Support for Fragments - React Blog

 6 years ago
source link: https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
React 16.2 is now available! The biggest addition is improved support for returning multiple children from a component’s render method. We call this feature fragments : Fragments look like empty JSX tags. They let you group a list of children without adding extra nodes to the DOM: This exciting new feature is made possible by additions to both React and JSX. What Are Fragments? A common pattern is for a component to return a list of children. Take this example HTML: Prior to version 16, the…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK