JavaScript

Why Importing Directories in JS Works

Have you ever seen an import statement where a file name is never specified? Something like Import Button from './components/button'. This is importing a directory, and yet it works? Let's figure out why.

Read