Tagged Template Literals

  Рет қаралды 3,316

Kent C. Dodds

Kent C. Dodds

Күн бұрын

Пікірлер: 7
@kasir-barati
@kasir-barati 5 ай бұрын
Really nice feature. Thanks BTW for the real world practical hands-on + rest of the examples you've mentioned in the video.
@sikz26300
@sikz26300 5 жыл бұрын
Thanks for going over this, I'm still having trouble understanding why you'd want to go this route though. At least in the case of the translation example, I'd probably prefer doing something like: (user, language=language)=>{ //lang can be passed in or defaulted to browser/state or something else const {hello,yourBirthdayIs} = getTranslations(language); const {name,birthday} = user; return `${hello}${name}, ${yourBirthdayIs}${birthday}` } But maybe thats just this example, or maybe it just makes me feel dirty using string search to filter out my replacements.
@escapiststupor
@escapiststupor 6 жыл бұрын
Thank you Kent for these wonderful livestreaming!
@gosnooky
@gosnooky Жыл бұрын
Reduce the interpolations always (since its length is always 1 fewer than the literals) interpolations.reduce((acc, current, i) => acc + current + literals[i + 1], literals[0]) More succinct this way.
@julianklumpers
@julianklumpers 6 жыл бұрын
What syntax theme are you using? Edit: found it already, its Nightowl. Nice video btw
@KentCDodds-vids
@KentCDodds-vids 6 жыл бұрын
kcd.im/mft
@herrmosa918
@herrmosa918 6 жыл бұрын
Useful tutorial
TypeScript Wizardry: Recursive Template Literals
14:47
Tech Talks with Simon
Рет қаралды 39 М.
Tagged Template Literals
11:11
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Use React with an index.html and script tags
23:54
Kent C. Dodds
Рет қаралды 49 М.
Tagged Template Literals JavaScript
10:48
techsith
Рет қаралды 10 М.
Template Literals & Tags in JavaScript
8:20
Colby Fayock
Рет қаралды 1,2 М.
Fetch API & Rendering Data with JavaScript
28:42
Code Bushi
Рет қаралды 123 М.
Epic Megabundle
3:52
Kent C. Dodds
Рет қаралды 756
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 97 М.
Vanilla JS Single Page Application Routes | # or URL  - #88
33:38
KCD Office Hours 2025-01-09
40:42
Kent C. Dodds
Рет қаралды 237
5 MORE Must Know JavaScript Features That Almost Nobody Knows
18:05
Web Dev Simplified
Рет қаралды 180 М.