Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Created January 4, 2019 02:42
Show Gist options
  • Select an option

  • Save CodingItWrong/4d2d18020f0af862b5c1df51b4ea4f8b to your computer and use it in GitHub Desktop.

Select an option

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