DEV Community

Discussion on: What JavaScript do you need to know to write Single-Page-Applications more effectively: A Guide

Collapse
larsejaas profile image
Lars Ejaas • Edited on

This is a very useful article for anyone new to frameworks!

If the module isn't exported as default (this could be in a file with multiple exports), it is possible to import the module(s) like this:

import { module1, module2 } from "./modulefile"
Enter fullscreen mode Exit fullscreen mode
Collapse
rjzauner profile image
RoryJZauner Author

Thank you for your reply! Your point is really helpful