Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Created January 4, 2019 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodingItWrong/4d2d18020f0af862b5c1df51b4ea4f8b to your computer and use it in GitHub Desktop.
Save CodingItWrong/4d2d18020f0af862b5c1df51b4ea4f8b to your computer and use it in GitHub Desktop.
import NewMessageForm from './NewMessageForm';
+import MessageList from './MessageList';
...
render() {
+ const { messages } = this.state;
return (
<View>
<NewMessageForm onSend={this.handleSend} />
+ <MessageList data={messages} />
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment