We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d85a2c3 + f67f514 commit 48348bcCopy full SHA for 48348bc
1 file changed
src/AsyncCreatable.js
@@ -1,5 +1,4 @@
1
import React from 'react';
2
-import createClass from 'create-react-class';
3
import Select from './Select';
4
5
function reduce(obj, props = {}){
@@ -11,12 +10,11 @@ function reduce(obj, props = {}){
11
10
}, props);
12
}
13
14
-const AsyncCreatable = createClass({
15
- displayName: 'AsyncCreatableSelect',
+class AsyncCreatableSelect extends React.Component {
16
17
focus () {
18
this.select.focus();
19
- },
+ }
20
21
render () {
22
return (
@@ -42,6 +40,7 @@ const AsyncCreatable = createClass({
42
40
</Select.Async>
43
41
);
44
45
-});
+};
+
+module.exports = AsyncCreatableSelect;
46
47
-module.exports = AsyncCreatable;
0 commit comments