trigger |
snippet(JS) |
snippet(TS) |
---|---|---|
rcns⇥ |
constructor(props) {
super(props)
this.state = {
}
} |
constructor(props: Props) {
super(props)
this.state = {
}
} |
cdm⇥ |
componentDidMount() {
} |
componentDidMount(): void {
} |
cdu⇥ |
componentDidUpdate(prevProps, prevState, snapshot) {
} |
componentDidUpdate(prevProps: Props, prevState: State, snapshot: any): void {
} |
cdc⇥ |
componentDidCatch(error, info) {
} |
componentDidCatch(error: Error, info: ErrorInfo): void {
} |
cwu⇥ |
componentWillUnmount() {
} |
componentWillUnmount(): void {
} |
scu |
shouldComponentUpdate(nextProps, nextState) {
} |
shouldComponentUpdate(nextProps: Props, nextState: State): boolean {
} |