JSX callback without passing individual props

前端 未结 0 1409
死守一世寂寞
死守一世寂寞 2020-12-10 22:30

I wonder if there is a way to replicate same usage of js callback\'s in JSX like:

[1,2,3].map(console.log) // Here map          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题