paint-brush
React Pro Tip: Use absolute imports for better readability and easy refactoringby@aakashns
17,998 reads
17,998 reads

React Pro Tip: Use absolute imports for better readability and easy refactoring

by Aakash N S2mNovember 6th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Aakash N S

Aakash N S

@aakashns

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

About Author

Aakash N S HackerNoon profile picture
Aakash N S@aakashns

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite