【发布时间】:2022-11-22 01:15:24
【问题描述】:
怎么才能转换类组件 构造函数至功能组件?
来自类组件
constructor(props) { super(props); this.state = { myText: 'I\'m ready to get swiped!', gestureName: 'none', backgroundColor: '#fff' }; }功能组件
const Component = () => { //CODE }
【问题讨论】:
标签: react-native