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

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

April 9th 2020
2m
by @aakashns 17,912 reads
tldt arrow
Read on Terminal Reader
Read 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

Receive Stories from @aakashns

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!