Загрузка видео...

Не удалось загрузить видео

На главную

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

137,135 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля George Moller
George Moller3 лет назад

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

Фото профиля Amit
Amit3 лет назад

That smooth animation in your content is very attractive!

Фото профиля George Moller
George Moller3 лет назад

Glad you liked it Amit! :)

Фото профиля Kamil Barth
Kamil Barth3 лет назад

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.

Фото профиля Sachin Kumar
Sachin Kumar3 лет назад

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 😕

Фото профиля George Moller
George Moller3 лет назад

You can configure both!

Фото профиля Ved Prakash Yadav
Ved Prakash Yadav3 лет назад

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

Фото профиля Anton Zaremba
Anton Zaremba3 лет назад

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

Фото профиля Q
Q3 лет назад

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

Фото профиля George Moller
George Moller3 лет назад

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

Похожие видео