DEV Community

Discussion on: Dynamic Imports With Webpack 2

Collapse
 
jdiapps profile image
Michael Schreiber

If I wanted to change:

export function render() {
return '

Home

'
}

to use:

export class Render {

render() {
return '

Home

'
}
}

How would I consume the dynamically imported class and invoke the page.render() method.

I have tried and been unsuccessful.

Thanks
Michael

Collapse
 
kayis profile image
K

Somehow your markup is broken.