From 8fe0d4d73fbf2a65ab2d89a4ba0cc1e7b09c98a9 Mon Sep 17 00:00:00 2001 From: Semigradsky Date: Thu, 10 Sep 2015 16:10:17 +0300 Subject: [PATCH] Fixed React warnings --- examples/components/Select.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/components/Select.js b/examples/components/Select.js index f8d9afa..57a286d 100644 --- a/examples/components/Select.js +++ b/examples/components/Select.js @@ -12,9 +12,8 @@ const MySelect = React.createClass({ const className = this.props.className + ' ' + (this.showRequired() ? 'required' : this.showError() ? 'error' : null); const errorMessage = this.getErrorMessage(); - const value = this.getValue(); - const options = this.props.options.map(option => ( - )); @@ -22,7 +21,7 @@ const MySelect = React.createClass({ return (
- {options} {errorMessage}