--- id: self-closing-tag title: Self-Closing Tag layout: docs permalink: self-closing-tag.html --- ### Problem You're getting a parsing error (unexpected token) from JSX. ### Solution One of the reasons might be that you didn't put a `/` for your self-closing tags. `` is valid while `` isn't. ### Discussion Every React component can be self-closing where it makes sense: `
`.