Browse Source

Note that getInitialState is not used in ES6 classes in docs (#7748)

main
Gil Chen-Zion 8 years ago
committed by Paul O’Shannessy
parent
commit
fbccd7b3d6
  1. 4
      docs/ref-03-component-specs.it-IT.md
  2. 4
      docs/ref-03-component-specs.ko-KR.md
  3. 4
      docs/ref-03-component-specs.md
  4. 4
      docs/ref-03-component-specs.zh-CN.md

4
docs/ref-03-component-specs.it-IT.md

@ -37,6 +37,10 @@ object getInitialState()
Invocato una volta prima che il componente venga montato. Il valore di ritorno sarà usato come il valore iniziale di `this.state`.
> Nota:
>
> Questo metodo non è disponibile il componenti `class` ES6 che estendono `React.Component`. Per maggiori informazioni, leggi la nostra documentazione sulle [classi ES6](/react/docs/reusable-components.html#es6-classes).
### getDefaultProps

4
docs/ref-03-component-specs.ko-KR.md

@ -37,6 +37,10 @@ object getInitialState()
컴포넌트가 마운트되기 전에 한번 호출됩니다. 리턴값은 `this.state`의 초기값으로 사용됩니다.
> 주의:
>
> 이 메소드는 `React.Component`를 확장한 ES6 `class` 컴포넌트에서는 사용할 수 없습니다. 관한 더 자세한 정보는 [ES6 클래스](/react/docs/reusable-components-ko-KR.html#es6-클래스)를 읽어보세요.
### getDefaultProps

4
docs/ref-03-component-specs.md

@ -37,6 +37,10 @@ object getInitialState()
Invoked once before the component is mounted. The return value will be used as the initial value of `this.state`.
> Note:
>
> This method is not available on ES6 `class` components that extend `React.Component`. For more information, please read our documentation about [ES6 classes](/react/docs/reusable-components.html#es6-classes).
### getDefaultProps

4
docs/ref-03-component-specs.zh-CN.md

@ -37,6 +37,10 @@ object getInitialState()
当组件被挂载时调用一次.返回值会被用作为 `this.state` 的初始值.
> 注意:
>
> 这个方法在从 `React.Component` 扩展的 ES6 `class` 组件里不可用。 更多的信息,请阅读我们关于[ES6 classes](/react/docs/reusable-components.html#es6-classes)的文档.
### getDefaultProps

Loading…
Cancel
Save