A small demo app built to show the new features of React 16. Ideally it also shows why these new features allow you to create better applications.
Each page shows the same application, with the React 16 example taking advantage of new features to create a better user experience.
Here's a summary of the new features shown.
<!-- react-text: 8 -->
text in here
<!-- /react-text -->
render() {
return [
<li key="A">First item</li>,
<li key="B">Second item</li>,
<li key="C">Third item</li>,
];
}
render() {
return (
<Fragemnt>
<li key="A">First item</li>
<li key="B">Second item</li>
<li key="C">Third item</li>
</Fragment>
);
}
Alternatively you can also use the JSX fragment syntax.
<>Item</>