Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

⚛️ React Tip: Clean up your code by using absolute imports + module aliases ↓

137,135 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von George Moller
George Mollervor 3 Jahren

Hey there 👋, Friendly reminder that I have more than 100 infographics and video animations just like this one. Check them out ↓

Profilbild von Amit
Amitvor 3 Jahren

That smooth animation in your content is very attractive!

Profilbild von George Moller
George Mollervor 3 Jahren

Glad you liked it Amit! :)

Profilbild von Kamil Barth
Kamil Barthvor 3 Jahren

How the fuck is this a react tip? This is literally a Typescript functionality Tbf if any react dev finds any of those tips useful i will never believe they know what they are doing.

Profilbild von Sachin Kumar
Sachin Kumarvor 3 Jahren

Not sure if the aliasing will be good. Like I can't click on the import to open the file and see the code when I use the aliasing. Also not sure if it will give me intellisense for the component path 😕

Profilbild von George Moller
George Mollervor 3 Jahren

You can configure both!

Profilbild von Ved Prakash Yadav
Ved Prakash Yadavvor 3 Jahren

This is really great. Can you tell how to create this type of animation? Any tool for it?

Profilbild von Anton Zaremba
Anton Zarembavor 3 Jahren

It's better if you only have one root alias, like so: "@/*": ["./*"]

Profilbild von Q
Qvor 3 Jahren

Hi George, which file are we adding the module aliases rule to?

Profilbild von George Moller
George Mollervor 3 Jahren

@____bajomo sorry I didn't reply earlier but should be tsconfig.json/jsconfig.json

Ähnliche Videos