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
Create React App
Search
se_kamo
August 29, 2016
Technology
0
140
Create React App
Grand Frontend Osaka での LT資料です。
se_kamo
August 29, 2016
Tweet
Share
More Decks by se_kamo
See All by se_kamo
Grand Frontend Osaka 2016 オープニングトーク 資料
wakaishinichiro
0
110
Other Decks in Technology
See All in Technology
Mastering Quickfix
daisuzu
2
380
DynamoDB でスロットリングが発生したとき/when_throttling_occurs_in_dynamodb_short
emiki
0
310
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
130
Introduction to Works of ML Engineer in LY Corporation
lycorp_recruit_jp
0
170
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1.1k
アプリエンジニアのためのGraphQL入門.pdf
spycwolf
0
140
クルマのサブスクを Next.jsで内製化した経験とその1年後
kintotechdev
1
100
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
360
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
500
TypeScript、上達の瞬間
sadnessojisan
49
14k
Postman Flowsで作るAPI連携LINE Bot
miura55
0
180
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.9k
Featured
See All Featured
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The Invisible Side of Design
smashingmag
298
50k
Typedesign – Prime Four
hannesfritz
40
2.4k
Site-Speed That Sticks
csswizardry
0
52
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Speed Design
sergeychernyshev
25
630
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
A designer walks into a library…
pauljervisheath
204
24k
Transcript
Create React App Wakai Shinichiro @se_kamo
Wakai @se_kamo ؔϑϩϯτΤϯυUG GFO 2016 ౷ׅ ݉ ࣮ߦҕһ ަϲݪ ຊҨ࢈ϓϩδΣΫτ
ٕज़෦ גࣜձࣾάϥουΩϡʔϒ ΤϯδχΞ
React Λ͍͍ͨʂ
ͨͩɺڥ͕͑Εͣɺ அ೦ɻɻ
͙͢ʹίʔυΛॻ͖͍ͨʂ
Create React App
ReactͷڥΛ 1ͰߏஙͰ͖Δπʔϧ
7݄ʹFacebook͕ެ։ ES6JSXʹରԠ
ߏஙͯ͠Έ·͠ΐ͏
npm Πϯετʔϧ
npm install -g create-react-app
None
ίϚϯυͨͨ͘
create-react-app <σΟϨΫτϦ໊>
None
ڥʂʂʂ
ReactΞϓϦΛ্ཱͪ͛Δ
npm start
None
্ཱ͕ͪͬͨ
ެ։ϑΝΠϧͷ ग़ྗ؆୯
npm run build
None
build ͷԼʹ ެ։ϑΝΠϧΛग़ྗʂ
ͳͥ͜Μͳ͜ͱ͕Ͱ͖Δͷ͔ʁ
Create React App Ͱ ΘΕ͍ͯΔٕज़
• webpack • webpack-dev-server • style-loader • Babel • Autoprefixer
• ESLint
webpack • ࠷దͳܗʹ࡞Γม͑ΔҝͷπʔϧʢϏϧυπʔ ϧʣ • JadeCoffeeScriptΛίϯύΠϧ, ϑΝΠϧͷ minifyͯ͘͠ΕΔ • Create
React App ͰES2016JSXͷτϥϯ εύΠϧΛͯ͘͠Ε͍ͯΔ
webpack-dev-server • ϩʔΧϧαʔόʔΛىಈͯ͘͠ΕΔ • ϑΝΠϧΛมߋͨ͠ࡍݕͯ͠ɺϒϥβ ΛࣗಈతʹϦϩʔυͯ͠Δ
style-loader • JavascriptͷίʔυதͰstylesheetΛrequireग़ དྷΔΑ͏ʹ͢Δπʔϧ • ෦ཁૉʹඞཁͳελΠϧΛɺඞཁͳ͚࣌ͩ ద༻͢Δ͜ͱ͕Ͱ͖Δ • ϦΫΤετΛݮΒ͢͜ͱ͕Ͱ͖Δ
Babel • ES6ES7, JSXΛτϥϯεύΠϧ͢Δπʔϧ • Ұ෦ͷϒϥβ͕ES5·Ͱ͔͠ରԠͯ͠ͳ͍ͷ Ͱɺ։ൃ͞Εͨͷ͕Babel
ESLint • ߏจʹϛε͕ͳ͍͔ΛνΣοΫͯ͘͠ΕΔ੩ తݕূπʔϧ • ؆୯ʹߏจνΣοΫΛΧελϚΠζͰ͖Δ • ES6, ES7, JSXͷه๏Λαϙʔτ͍ͯ͠Δ
·ͱΊ ؆୯ʹͰ͖ΔΑʂ
ಓ۩ἧ͍·ͨ͠
ޙั·͑Δ͚ͩͰ͢Ͷ
͝੩ௌ͍͖ͨͩɺ ͋Γ͕ͱ͏͍͟͝·͢ɻ