When you go to GitHub and see some other developers' code, most of them are importing their components like the below image. This is called relative import. Relative import will start with either ./ or ../
However, there is a very better and cleaner way to import these components. This method is called absolute import. An absolute import will look this like ๐
To import components like the above image, you just need to open your project in any code editor and create a new file in your project's root directory named jsconfig.json. Once you created the file paste the below JSON inside of it.
That is it, you can now use absolute import :)
If you found this thread useful, consider:
โ Following me @SuhailKakar for more content like this
๐ Retweeting the first tweet.
Thanks for your support ๐
โข โข โข
Missing some Tweet in this thread? You can try to
force a refresh
10 Most Used Windows Softwares Alternatives for Linux ๐ง
The alternatives below are more reliable, less buggy, more secure, easy to upgrade, and easy to install. They have a huge amount of fans among users and donโt crash as often as their Windows equivalents ๐
Learning to code can be challenging, especially if you don't know where to begin. The greatest approach to improve your programming abilities is to use them to create coding projects.
Here are some programming projects to boost your confidence and make you a better developer.
Calculator app ๐งฎ
The program that we all use on a daily basis is the calculator. The calculator is a project that is both simple and practical.
Creating a calculator app can help you learn, how to build reusable components, how to use props, and how to handle states.
EC2 is an Amazon cloud platform that provides safe and scalable computation capability. Its goal is to provide developers with simple access and usability for web-scale cloud computing while giving you complete control over your compute resources.
2. Amazon RDS
The Amazon Relational Database Service makes database management, scalability, and setup simple in the cloud. Automate time-consuming activities including hardware provisioning, database configuration, and backups in a cost-effective and proportional manner.