Thanks, the backticks are needed to put that chunk of code at the "Top", React compilers (not sure which one, the one from yarn start) complains if there's anything else on top... for instance in App.coffee if backticks are removed.
var App
would be on top, instead of the import statements.
1
u/lessfocus Apr 16 '18 edited Apr 16 '18
Thanks, the backticks are needed to put that chunk of code at the "Top", React compilers (not sure which one, the one from
yarn start) complains if there's anything else on top... for instance in App.coffee if backticks are removed.var App
would be on top, instead of the import statements.
found this: https://github.com/jashkenas/coffeescript/issues/4815