Introducing React Loadable
Jamie Kyle


I’m using VS Code on a mac and the code below gives syntax errors.

‘Parameter declaration expected’

‘types can only be used in a .ts file’

let LoadableExample = Loadable({
 loader: () => fakeDelay(400).then(() => import(‘./Example’)),
 LoadingComponent: Loading,
 serverSideRequirePath: path.resolve(__dirname, ‘./Example’)

It complies, and runs. I know this is not an error with you’re component, but any ideas how I get the syntax errors ironed out with VS Code. Sublime Text 3 is ok as it has no intellisence

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.