Snack runs code that has been commented out?

Snack seems to take code that’s been commented out using single-line or multi-line comments and run it anyway:

:frowning: Sorry about that. Thanks for reporting!

Hmm, maybe JSX does not support JS comments: How to comment in React JSX - Wes Bos

Surprising! Yeah, that’s it:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.