Permalink
Browse files

Clarify use of Flow props types in cli example

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 9b147a53d1ab1e14d7ef5b436f1e140a28a5d6a3
Showing with 2 additions and 1 deletion.
  1. +2 −1 local-cli/templates/HelloWorld/App.js
@@ -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}>

0 comments on commit 9b147a5

Please sign in to comment.