From 3a4fe2655719c855e5c10bbd94e9bb46c824df6a Mon Sep 17 00:00:00 2001 From: Yuri S Date: Fri, 22 Dec 2017 06:53:52 +0200 Subject: [PATCH] Fixed readme example --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a022326a9a..e645a74891 100644 --- a/README.md +++ b/README.md @@ -66,10 +66,13 @@ class App extends React.Component { console.log(`Selected: ${selectedOption.label}`); } render() { + const { selectedOption } = this.state; + const value = selectedOption && selectedOption.value; + return (