html

import React,{ useState } from 'react'

const VrCornucopiaHome = () => {

    const bbbbb = () => {
        alert(1)
    }
    return (
      <button type="button" onClick={ () => bbbbb() }>知道了</button>
    )
    //写在return后无效
    const bbbbb = () => {
        alert(1)
    }
}    

 

export default VrCornucopiaHome

 

 

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2018-10-29
  • 2022-12-23
  • 2022-12-23
  • 2019-03-07
  • 2021-11-13
  • 2021-09-03
猜你喜欢
  • 2021-08-13
  • 2021-11-29
  • 2021-08-12
  • 2021-11-16
相关资源
相似解决方案