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
Hello React hooks
Search
circled9
November 30, 2018
Technology
0
780
Hello React hooks
water-cell tech night #2で話したreact hooksの紹介スライドです。
circled9
November 30, 2018
Tweet
Share
More Decks by circled9
See All by circled9
キースイッチ入門
circled9
0
74
CloudflareのAI関連の機能さわってみた
circled9
0
600
0.0.0.0 day
circled9
0
100
小数の丸め誤差の話
circled9
0
140
数値の文字列をパースしよう
circled9
0
220
🔥 Hono v4 やってみた
circled9
1
190
JetBrains AI Assistant を試してみた
circled9
1
520
Fresh
circled9
0
240
React Hooks 勉強会 vol.3
circled9
2
440
Other Decks in Technology
See All in Technology
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ #1 量子機械学習の入門
tkhresk
0
140
Windows 11 で AWS Documentation MCP Server 接続実践/practical-aws-documentation-mcp-server-connection-on-windows-11
emiki
0
1k
Fabric + Databricks 2025.6 の最新情報ピックアップ
ryomaru0825
1
150
25分で解説する「最小権限の原則」を実現するための AWS「ポリシー」大全 / 20250625-aws-summit-aws-policy
opelab
9
1.2k
GitHub Copilot の概要
tomokusaba
1
140
Lambda Web Adapterについて自分なりに理解してみた
smt7174
5
130
Tech-Verse 2025 Global CTO Session
lycorptech_jp
PRO
0
560
解析の定理証明実践@Lean 4
dec9ue
0
180
あなたの声を届けよう! 女性エンジニア登壇の意義とアウトプット実践ガイド #wttjp / Call for Your Voice
kondoyuko
4
480
第9回情シス転職ミートアップ_テックタッチ株式会社
forester3003
0
260
データプラットフォーム技術におけるメダリオンアーキテクチャという考え方/DataPlatformWithMedallionArchitecture
smdmts
5
650
Node-RED × MCP 勉強会 vol.1
1ftseabass
PRO
0
160
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
490
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
24k
Faster Mobile Websites
deanohume
307
31k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
930
Rails Girls Zürich Keynote
gr2m
94
14k
Transcript
ハロー リアクト フック @circled9 2018-11-30 WCI Tech night #2
Matsui Masashi দҪਖ਼ࢤ DJSDMFE 'SPOUFOE&OHJOFFS !XBUFSDFMMJOD !2
ࠓհ͢Δͷ 3FBDUWͷ৽ػೳ !3
)PPLT"1* !4
Hooks are a new feature proposal that lets you use
state and other React features without writing a class. They’re currently in React v16.7.0-alpha and being discussed in an open RFC. IUUQTSFBDUKTPSHEPDTIPPLTSFGFSFODFIUNMΑΓҾ༻ !5
ҙ༁ w )PPLT3FBDUͷ࣍ͷόʔδϣϯ Ͱ͑Δ༧ఆͷͭ w DMBTTͳ͠ͰTUBUFͱ͔͕͑Δ w ·ͩ3'$ͳײ͡Ͱ༷ࡦఆத !6
/P#SFBLJOH$IBOHFT w ͏ͷҙͩ͠ޙํޓੑͱ͔ Ϳͬյ͞ͳ͍Α w ผʹDMBTTΛͳ͘͢ؾͳ͍Α w 3FBDUͷߟ͑ํίϯηϓτͱ͔ มΘΒͳ͍Α !7
)PPLT"1*ͷհ !8
ࠓհ͢Δͷ w VTF4UBUF w VTF&GGFDU w VTF3FEVDFS !9
ࠓհ͠ͳ͍ͷ w VTF$POUFYU w ଞɺ"EEJUJPOBM)PPLTͷେ w VTF$BMMCBDL VTF.FNP VTF3FG
FUD !10
VTF4UBUF w TUBUF͕͑Δ w ݱࡏͷঢ়ଶͱঢ়ଶΛม͑ΔؔΛฦ ͢ w چདྷͷTFU4UBUFͷΑ͏ʹΦϒδΣ ΫτͷϚʔδ͠ͳ͍ͷͰҙ !11
VTF&GGFDU w ඳը͕ऴΘ͔ͬͯΒ࣮ߦ͞ΕΔ w %JE.PVOU%JE6QEBUFʹ͍ۙ w ୈೋҾͰࢹ͢ΔରΛࢦఆ͢Δ w ୈҰҾͷฦΓͷؔͰΫϦʔϯ Ξοϓ͢Δ
!12
VTF3FEVDFS w 'MVYϥΠΫͳ͜ͱ͕Ͱ͖Δ !13
ॴײ w SFDPNQPTFSFEVYͳͲΛͬ ͯͬͯͨ͜ͱͷҰ෦3FBDU͚ͩ ͰͰ͖ͦ͏ w ͠Β͘ϕετϓϥΫςΟεΛ ࡧ͢Δ͜ͱʹͳΓͦ͏ !14
&OKPZ)PPLT !15