Nice imports with Next.js

added by JavaScript Kicks
11/5/2019 8:08:03 AM

257 Views

During my React based development, I'll find myself importing a module `from '../../../components/Widget'` and that `../../../` is anyone's guess if it's right first time or not. Except I discovered that Next.js (which is what I do most of my React dev with) ships with a trick up its sleeve.


0 comments