From 520458e9435f84c0076de84f01f6262d8014e744 Mon Sep 17 00:00:00 2001 From: pombam Date: Wed, 24 Jan 2018 12:45:35 +0545 Subject: [PATCH] Update react.md --- react.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/react.md b/react.md index 7eb538ff6..ab913c8e1 100644 --- a/react.md +++ b/react.md @@ -106,6 +106,23 @@ class Info extends React.Component { } } ``` +As of React v16.2.0 + + +```jsx +class Info extends React.Component { + render () { + const { avatar, username } = this.props + + return + + + + } +} +``` + + {: data-line="6,7"} Nest components to separate concerns.