当前位置: 首页> 房产> 家装 > 游戏开发大亨最佳搭配_手机网页界面设计_营销推广投放平台_推广软文发布平台

游戏开发大亨最佳搭配_手机网页界面设计_营销推广投放平台_推广软文发布平台

时间:2025/7/14 7:17:34来源:https://blog.csdn.net/m0_51170428/article/details/146148199 浏览次数:0次
游戏开发大亨最佳搭配_手机网页界面设计_营销推广投放平台_推广软文发布平台

class中用法:
import React, { Component } from 'react'

// 我的-设置页
export default class Index extends Component<any, any> {

  constructor(props) {
    super(props)
    this.state = {
      settingInfo: {},
    }
  }

  async componentDidMount() {
    let settingInfo = await Service.getSettingInfo(this.context, {
      page_session_id: 'kUeombnhdm',
    })
    this.setState({ settingInfo: settingInfo })
  }

  render() {
    return <View style={{ marginTop: 50 }}>{this.state.settingInfo.errorMsg}</View>
  }
}

 

function中用法:
import React, { useEffect, useState } from 'react'

const Index = () => {
  const [driver, setDriver] = useState(false)
  useEffect(() => {
    setDriver(false)
  }, [])
  return <View className={styles.backgroundIcon}>{driver}</View>
}

export default Index

关键字:游戏开发大亨最佳搭配_手机网页界面设计_营销推广投放平台_推广软文发布平台

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: