| React 16 Fragments, Portals & Error boundaries
|
Showing posts with label Fragments. Show all posts
Showing posts with label Fragments. Show all posts
Thursday, August 13, 2020
Wednesday, April 11, 2018
What's new in React 16.2
The major improvement in React v16.2 is the way we implement Fragments. In React v16.0 we can return multiple elements/components from a react component as an array.
Tuesday, April 10, 2018
Fragments in React v16
Fragments is a new feature in React v16.0 which allows us to return multiple child elements/components/strings from a component without using a wrapper like <div> or <span>. Prior to react v16.0 this was not possible. Make sure that you include the "Key" attribute while returning multiple elements.
Below examples show how Fragments can be used in React 16.
Below examples show how Fragments can be used in React 16.
What's new in React 16.0
React v16.0 comes with major changes in the underlying architecture, with limited changes to the pubic API so the way we write react code doesn't change much, but the internals have changed drastically.
Some of the key new features introduces in React 16 are fragments, error boundaries, portals, improvements to server side rendering and reduced library file size.
Some of the key new features introduces in React 16 are fragments, error boundaries, portals, improvements to server side rendering and reduced library file size.
Labels:
Error boundaries,
Fragments,
Portals,
React v16,
Server side rendering
Subscribe to:
Posts (Atom)

