title: React JSX error : Unclosed regular expression
body: <p>Recently I was facing an issue coding React app on Visual Studio code. Because of this issue, whenever I wrote JSX inside the render function of the React Component and saved it, it would go messed up (I mean indentation would get messy). See the pic:
  <a href="https://i.stack.imgur.com/3PhKp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3PhKp.png" alt="enter image description here"></a></p>
  
  <p>This error was also showing error like:
  1. Unclosed regular expression</p>
  
  <p>How to solve this?</p>