|
473 | 473 | "prefix": "us",
|
474 | 474 | "body": "'use strict'",
|
475 | 475 | "description": "insert 'use strict' statement"
|
| 476 | + }, |
| 477 | + "component static prop types": { |
| 478 | + "prefix": "propTypes", |
| 479 | + "body": "static propTypes = {0ドル}", |
| 480 | + "description": "Component Static Prop Types" |
| 481 | + }, |
| 482 | + "component static default props": { |
| 483 | + "prefix": "defaultProps", |
| 484 | + "body": "static defaultProps = {0ドル}", |
| 485 | + "description": "Component Static Default Props" |
| 486 | + }, |
| 487 | + "component static get derived state from props": { |
| 488 | + "prefix": "getDerivedStateFromProps", |
| 489 | + "body": "static getDerivedStateFromProps(${1:nextProps}, ${2:prevState}) {0ドル}", |
| 490 | + "description": "Component Static Get Derived State From Props" |
| 491 | + }, |
| 492 | + "component set state": { |
| 493 | + "prefix": "setState", |
| 494 | + "body": "this.setState(1ドル)0ドル" |
| 495 | + }, |
| 496 | + "component constructor": { |
| 497 | + "prefix": "constructor", |
| 498 | + "body": [ |
| 499 | + "constructor(${1:props}) {", |
| 500 | + "\tsuper(${1:props})", |
| 501 | + "", |
| 502 | + "\t4ドル", |
| 503 | + "}" |
| 504 | + ] |
| 505 | + }, |
| 506 | + "component will mount": { |
| 507 | + "prefix": "componentWillMount", |
| 508 | + "body": "componentWillMount() {0ドル}", |
| 509 | + "description": "DEPRECATION WARNING [v16.3]: Use `componentDidMount` instead." |
| 510 | + }, |
| 511 | + "component did mount": { |
| 512 | + "prefix": "componentDidMount", |
| 513 | + "body": "componentDidMount() {0ドル}" |
| 514 | + }, |
| 515 | + "component will receive props": { |
| 516 | + "prefix": "componentWillReceiveProps", |
| 517 | + "body": "componentWillReceiveProps(${1:nextProps}) {0ドル}", |
| 518 | + "description": "DEPRECATION WARNING [v16.3]: Use `static getDerivedStateFromProps` instead." |
| 519 | + }, |
| 520 | + "should component update": { |
| 521 | + "prefix": "shouldComponentUpdate", |
| 522 | + "body": "shouldComponentUpdate(${1:nextProps}, ${2:nextState}) {0ドル}" |
| 523 | + }, |
| 524 | + "component will update": { |
| 525 | + "prefix": "componentWillUpdate", |
| 526 | + "body": "componentWillUpdate(${1:nextProps}, ${2:nextState}) {0ドル}", |
| 527 | + "description": "DEPRECATION WARNING [v16.3]: Use `componentDidUpdate` instead." |
| 528 | + }, |
| 529 | + "component did update": { |
| 530 | + "prefix": "componentDidUpdate", |
| 531 | + "body": "componentDidUpdate(${1:nextProps}, ${2:state}) {0ドル}" |
| 532 | + }, |
| 533 | + "component will unmount": { |
| 534 | + "prefix": "componentWillUnmount", |
| 535 | + "body": "componentWillUnmount() {0ドル}" |
| 536 | + }, |
| 537 | + "component did catch": { |
| 538 | + "prefix": "componentDidCatch", |
| 539 | + "body": "componentDidCatch(${1:error}, ${2:errorInfo}) {0ドル}" |
| 540 | + }, |
| 541 | + "component render": { |
| 542 | + "prefix": "render", |
| 543 | + "body": ["render() {", "\treturn (0ドル)", "}"] |
476 | 544 | }
|
477 | 545 | }
|
0 commit comments