Warning: Unknown prop on <> tag. Remove this prop from the element

后端 未结 1 1016
时光取名叫无心
时光取名叫无心 2021-01-18 09:12

I\'m new to react and i was learning subclasses from one of Lynda examples. I\'m creating a new subcomponent class called aptList and using this.props.eac

相关标签:
1条回答
  • 2021-01-18 09:50

    Rename aptList to AptList.

    Otherwise React considers aptList to be a native html component and will trigger warnings for unknown HTML properties.

    See the link in the exception message:

    1. You are using a React component without an upper case. React interprets it as a DOM tag because ...
    0 讨论(0)
提交回复
热议问题