Expected corresponding JSX closing tag for input Reactjs

前端 未结 6 1059
醉话见心
醉话见心 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:22

    It happens when we do not close a html tag.

    Make sure all the html tags are closed.

    In my case it was the
    tag. It should be
    .

    Try temporarily removing piece of code until you find which html tag closing is missing.

提交回复
热议问题