Adding one import instead of multiple
Hello guys, how's your day going?
I know that there is a trick to do it, but I forgot.
I have a folder called pages in the Next.js project and I have there 6 pages, so I have to add to my App 6 imports, but I want to create an index.js file in the pages folder and do something like this - export * and then import in App only once, I wish I hadn't forgotten 🙏
3
4 comments
Denys Babych
3
Adding one import instead of multiple
Senior Dev Academy
skool.com/devmastery-academy-8041
The #1 Free Community for JavaScript Developers to fast-track from Junior to Senior level with quality resources, feedback, and accountability 🥳
Leaderboard (30-day)
Powered by