Skip to content

Commit 354e1cb

Browse files
behrendsfacebook-github-bot
authored andcommittedNov 8, 2017
Fix missing return in example
Summary: Found this minor issue while reading the docs. n/a [DOCS] [BUGFIX] [Libraries/Text/Text.js] - Add return to example Closes #16752 Differential Revision: D6274215 Pulled By: hramos fbshipit-source-id: ef735eb9179ab69d2ed1bc4a8b5e921d42d88fb0
1 parent 1d6ce23 commit 354e1cb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎Libraries/Text/Text.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,13 @@ const viewConfig = {
243243
* ```javascript
244244
* class MyAppHeaderText extends Component {
245245
* render() {
246-
* <MyAppText>
247-
* <Text style={{fontSize: 20}}>
248-
* {this.props.children}
249-
* </Text>
250-
* </MyAppText>
246+
* return (
247+
* <MyAppText>
248+
* <Text style={{fontSize: 20}}>
249+
* {this.props.children}
250+
* </Text>
251+
* </MyAppText>
252+
* );
251253
* }
252254
* }
253255
* ```

0 commit comments

Comments
 (0)
Please sign in to comment.