Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JavaScriptのテンプレートリテラル / Template Literal of Jav...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ygkn
June 20, 2019
Programming
0
220
JavaScriptのテンプレートリテラル / Template Literal of JavaScript
ygkn
June 20, 2019
Tweet
Share
More Decks by ygkn
See All by ygkn
カラースキームつくったよ / How to create color-scheme
ygkn
0
230
入門 React Hooks / Introduction of React Hooks
ygkn
0
220
Other Decks in Programming
See All in Programming
Fragmented Architectures
denyspoltorak
0
160
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
Data-Centric Kaggle
isax1015
2
780
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
並行開発のためのコードレビュー
miyukiw
0
180
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
高速開発のためのコード整理術
sutetotanuki
1
400
Package Management Learnings from Homebrew
mikemcquaid
0
230
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
190
Raku Raku Notion 20260128
hareyakayuruyaka
0
270
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
570
Featured
See All Featured
Test your architecture with Archunit
thirion
1
2.2k
エンジニアに許された特別な時間の終わり
watany
106
230k
Raft: Consensus for Rubyists
vanstee
141
7.3k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
75
Discover your Explorer Soul
emna__ayadi
2
1.1k
How GitHub (no longer) Works
holman
316
140k
Bash Introduction
62gerente
615
210k
First, design no harm
axbom
PRO
2
1.1k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Transcript
JavaScript の テンプレートリテラル やぎちゃん
自己紹介
文字をくっつけよう!
文字をくっつけよう!
もじぴったん
None
+演算子のなところ 加算?結合?
+演算子のなところ 加算?結合?
+演算子のなところ 加算?結合?
文字列の結合?
テンプレートリテラルで書く
さっきの
テンプレートリテラルで書く
テンプレートリテラルで書く
One more thing...
None
None
None
None
None
とはならない!
None
これ is 何?
None
これ is 何? タグ付きテンプレート文字列 →テンプレートリテラルで書かれた文字列(の配列)と埋め込まれた変数を受け取る関 数
タグ付きテンプレート文字列の例 (from MDN)
None
None
None
タグ付きテンプレート文字列と @emotion/styled (styled-componentsも可)
Styled Components?
Styled Components?
Styled Components? 一種のHOC
Styled Components?
Styled Components?
まとめ!!! • テンプレートリテラルは文字の連結だけじゃないよ! • 文字列と埋め込む変数を別々に関数に渡すのでいろいろできるよ!! • ↑の例として SQL や CSS
in JS のライブラリがあるよ!!!
ありがとうございました!