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 (