-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
sort-comp.js
52 lines (33 loc) · 882 Bytes
/
sort-comp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// @flow strict
/* eslint-disable no-useless-constructor, no-unused-vars, react/no-unused-class-component-methods */
const React = {
Component: class Component<S, P> {},
};
type Props = {};
type State = {};
export default class MyComponent extends React.Component<void, State> {
props: Props;
static defaultProps: Props = { ...null };
static displayName: string = 'MyAwesomeComponent';
state: State = { ...null };
somethingElse: boolean = true;
constructor() {
super();
}
static getDerivedStateFromProps() {}
static getDerivedStateFromError() {}
componentDidMount() {}
shouldComponentUpdate() {}
getSnapshotBeforeUpdate() {}
componentDidUpdate() {}
componentDidCatch() {}
componentWillUnmount() {}
onClick() {}
handleSomeEvent() {}
renderSomething(): null {
return null;
}
render(): null {
return null;
}
}