Skip to content

Commit

Permalink
Clarify use of Flow props types in cli example
Browse files Browse the repository at this point in the history
Summary:
This was introduced as part of a codemod a few months back. Hopefully this edit makes the example code clearer.
Closes #17189

Differential Revision: D6613378

Pulled By: hramos

fbshipit-source-id: da7263b3ce2b5c45d6e312807c88743fe10cd15d
  • Loading branch information
hramos authored and facebook-github-bot committed Dec 20, 2017
1 parent 5ea5683 commit 9b147a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion local-cli/templates/HelloWorld/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const instructions = Platform.select({
'Shake or press menu button for dev menu',
});

export default class App extends Component<{}> {
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
Expand Down

0 comments on commit 9b147a5

Please sign in to comment.