+ 3

Too many import files and components on top of every file in REACT.

As the project grows bigger, there's too many of imported files/components/third parties on top of every file. It's a pain both for eyes and scrolling. Any easy way or module where I can manage the imports for each file seperately?

31st May 2022, 7:20 AM
NBinte
NBinte - avatar
1 Respuesta
+ 1
This is a good question. It think we could have a file where we import every module/components/files we'll need in our entire project and then export it. So in other files we could just import the packages we need from it.
31st May 2022, 8:53 AM
Emeh Matthew
Emeh Matthew - avatar