Why am I getting this warning `No duplicate props allowed react/jsx-no-duplicate-props`

后端 未结 4 1568
醉梦人生
醉梦人生 2021-02-04 01:00

Why am I getting this warning?

warning No duplicate props allowed react/jsx-no-duplicate-props#

It\'s showing line number 28 but t

4条回答
  •  醉梦人生
    2021-02-04 01:28

    I also go this error, I was rendering a component and passed 'className' twice. My solution was found here with How to apply multiple classnames to an element. I then just concated the names together, the error went away and my UI rendered perfectly.

    //Error

    //Solution

提交回复
热议问题