We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64f159 commit bd26eafCopy full SHA for bd26eaf
src/scripts/Select.js
@@ -58,12 +58,10 @@ Select.propTypes = {
58
59
Select.isFormElement = true;
60
61
-export class Option extends Component {
62
- render() {
63
- const { label, children, ...pprops } = this.props;
64
- return (<option { ...pprops }>{ label || children }</option>);
65
- }
66
-};
+export const Option = (props) => {
+ const { label, children, ...pprops } = this.props;
+ return (<option { ...pprops }>{ label || children }</option>);
+}
67
68
Option.propTypes = {
69
children: PropTypes.node,
0 commit comments