How to not create a function every time for the handler if there can be multiple of them?

后端 未结 0 958
无人共我
无人共我 2021-02-04 18:00

For example, it is a StarRating component that can let the user select 1 to 5 stars or 1 to 10 stars, and the component is:

export default function StarRating({ n         


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