Inside React while using useState why they use arrow function on mouse events?

前端 未结 0 1762
忘掉有多难
忘掉有多难 2020-12-10 20:23

they can make like this =>

enter code here

  *ex*
    **const[background,setBackground] = useState(\'#fdfdfd\')
      const[font,setFont] = useSt         


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