How to get Create React App to work with Typescript and Emotion

preview_player
Показать описание
Learn how to get Create React App to work with Typescript and Emotion.

Links from video:

----
Video Suggestions:

----
Follow Me Online Here:

----
#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

Thanks for pointing me in the right direction!

PabloArcia
Автор

thanks ben. I've been experimenting heavily with react + TS and react + flow and have concluded that (for me), flow is much much more pleasant and efficient in practice. I guess i'd summarize my biggest pain point with TS + react is that it forces you to write code (note that even with non-react projects this point holds) in a c#-style, which is not something I want to aspire to.

psn
Автор

Thank you for the video. I've still 2 problems. The first is that the babel plugin is not correctly managing the css props. The second is that I can't find a way to let jest use the babel emotion plugin.
Do you have the same issues?

stefanoferretti
Автор

I think you should use injectionPlugin function of react app rewired instead of Babel loader as whole. Will be more efficient. Might save some build time as well. Funny that the sample code they provide is for emotion.

harshitpant
join shbcf.ru