For example, React still includes semicolons in its docs, but Vue does not. Vue was my next stop in JavaScript frameworks after jQuery and React, and I decided to adopt the no-semicolon coding style featured in the docs.
Are semicolons required in JSX?
1 Answer. It's because JSX {} expressions are limited to a single expression. ..will throw an error. There's no need for semi-colons if there will only be a single expression.
Is semicolon mandatory in JS?
No, semicolons are usually optional in JavaScript (Google for ASI / automatic semicolon insertion). Using them makes the code look much cleaner though and ASI is a horrible mis-feature (at least in my opinion).