Created
August 18, 2015 13:28
-
-
Save foo9/f5ac9788ef83a074a629 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 初期描画が発生する直前に一度実行される | |
// ComponentがDOMツリーに追加される前 | |
componentWillMount() | |
// 初期描画が発生した直後に一度実行される | |
// ComponentがDOMツリーに追加された状態 | |
// DOMに関わる初期化処理など | |
componentDidMount() | |
// propsが更新されると実行される | |
// このメソッドは初期描画では呼び出されない | |
componentWillReceiveProps(object nextProps) | |
// 新しいpropsまたはstateを受け取り、描画される前に実行される | |
bool shouldComponentUpdate(object nextProps, object nextState) | |
// 新しいpropsまたはstateを受け取り、描画される直前に実行される | |
// このメソッドは初期描画では呼び出されない | |
componentWillUpdate(object nextProps, object nextState) | |
// コンポーネントが更新されDOMが一新された直後に実行される | |
// このメソッドは初期描画では呼び出されない | |
componentDidUpdate(object prevProps, object prevState) | |
// DOMからコンポーネントがアンマウントされる直前に実行される | |
// ComponentがDOMから削除される前 | |
componentWillUnmount() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment