From bcbf2a464c280b586570ad18d25aba0f8fdeb0d2 Mon Sep 17 00:00:00 2001 From: Michel EDIGHOFFER Date: Tue, 24 Oct 2017 17:22:47 +0200 Subject: [PATCH] Useless caveat about root element in a component With new version of React (v16), many root element are acceptable. --- content/docs/components-and-props.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/content/docs/components-and-props.md b/content/docs/components-and-props.md index 7152deef..1bd1f7a6 100644 --- a/content/docs/components-and-props.md +++ b/content/docs/components-and-props.md @@ -122,10 +122,6 @@ ReactDOM.render( Typically, new React apps have a single `App` component at the very top. However, if you integrate React into an existing app, you might start bottom-up with a small component like `Button` and gradually work your way to the top of the view hierarchy. ->**Caveat:** -> ->Components must return a single root element. This is why we added a `
` to contain all the `` elements. - ## Extracting Components Don't be afraid to split components into smaller components.