React Pro Tip: Use Absolute Imports for Better Readability and Easy Refactoringby@aakashns
17,656 reads

React Pro Tip: Use Absolute Imports for Better Readability and Easy Refactoring

April 9th 2020
2 min
by @aakashns 17,656 reads
tldt arrow
Read on Terminal ReaderPrint this storyRead this story w/o Javascript

Too Long; Didn't Read

React Pro Tip: Use Absolute Imports for Better Readability and Easy Refactoring. Use absolute imports for better readability and easy refactoring with nested folders. Absolute imports are hard to read, inconvenient to write and hard to tell how far up you need to go with the dot-dot-slashes. It’s a really big pain to refactor. You might end up having to fix a dozen or so import s in a whole bunch of files. You can still use relative imports where it makes sense (see the last import above)

Company Mentioned

Mention Thumbnail
featured image - React Pro Tip: Use Absolute Imports for Better Readability and Easy Refactoring
Aakash N S HackerNoon profile picture

@aakashns

Aakash N S
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa