Closed daniellycosta closed 6 years ago
The reason is Uncaught SyntaxError: Unexpected token <
- you have JSX code included in <script>
and HTMLPreview does not support JSX, only vanilla JS. You can transcode JSX to JS using Babel.
Thank you! I'm going to try
I have a similar problem with modules:
SyntaxError: import declarations may only appear at top level of a module.
You cannot use ES6 import
in functions and this polyfill is wrapping the code in an anonymous function. So it will not work.
I generated the link on the site (LINK HERE!) but nothing happens and I only see a blank page.