logo
  • 教程列表
  • SO官方文檔
  • 無狀態功能元件
    • 無狀態功能元件
  1. StackOverflow 文件
  2. React 教程
  3. 無狀態功能元件

無狀態功能元件

Created: November-22, 2018

React 中的無狀態功能元件是傳遞給 props 的純函式。這些元件不依賴於狀態並且不使用元件生命週期方法。但是,你可以定義 propTypes 和 defaultPropts。

有關無狀態功能元件的更多資訊,請參閱 https://facebook.github.io/react/docs/reusable-components.html#stateless-functions 。

  • 無狀態功能元件

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明