Skip to content
Advertisement

SyntaxError: Expected corresponding JSX closing tag for . Line (17:9)

As I am working on React.js since last week. The closing tags are already provided by me of anchor <a> tag in below snippet.

JavaScript

As I am working on this, I haven’t found this type of error. I already check all the opening and closing of tags. Please find the error and give me the best possible solution.

Advertisement

Answer

The style attribute accepts a JavaScript object with camelCased properties rather than a CSS string.
Read https://reactjs.org/docs/dom-elements.html#style

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement