How to avoid anonymous function in react

前端 未结 0 928
臣服心动
臣服心动 2021-01-05 03:45

I have a scenario here

const Parent = () => {
    handleClick = (id) => {
        console.log(id)
    }
    return 
users.map((user,
相关标签:
回答
  • 消灭零回复
提交回复
热议问题