React Syntax Error : Expected corresponding JSX closing tag for

后端 未结 3 639
不知归路
不知归路 2021-01-02 02:13

I\'m beginner in React and I try to do a \"Camper Leader Board\" project from FreeCodeCamp. In StackOverflow code snippet it throws me:
` \"message\": \"SyntaxError:

3条回答
  •  北海茫月
    2021-01-02 02:23

    You need to close your img tag with a closing />:

    logo
    

    JSX is not as lenient as HTML when it comes to properly closing tags.

提交回复
热议问题