Expected corresponding JSX closing tag for input Reactjs

前端 未结 6 1028
醉话见心
醉话见心 2020-12-23 15:50

While creating a component in Reactjs with input fields error occurs Error: Parse Error: Line 47: Expected corresponding JSX closing tag for input at http://localhost/

6条回答
  •  礼貌的吻别
    2020-12-23 16:35

    You need to close the input element with /> at the end. In React, we have to close every element. Your code should be:

    
    

提交回复
热议问题