Introduction 📚
When you go to GitHub and see some other developers code, most of them are importing their components like this👇
impor...
For further actions, you may consider blocking this person and/or reporting abuse
Hello! Thanks for the article 👍
Also, I'm using this way in my project's
tsconfig.json
:And next in project files:
P.S. my full TS config file is here.
I prefer '@' instead of underscore...
As you wish!
I mean, you can also do handy placeholders for project folders this way.
For example, easily connect all of your Components:
Or styles for each Component:
Nevermind what kind of start symbol do you choose... 🤷
nice post i like it, are u safe bro
Thanks,
Yep, Currently I am living in India :)
Straight and concise post, great work! Barrel files are another cleaner way to import modules. One of the benefits comes into picture while code refactoring.
This is great! Thanks for sharing your knowledge
Glad you liked it Luke
Nice, good and to the point👍️.
Thank you Sanjar :)
I don’t think relative import will start with a
/