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
昔Reactで書いたコードをHyperappに移植した話 / Porting react to...
Search
Yuuki Sumida
September 01, 2018
Programming
290
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
昔Reactで書いたコードをHyperappに移植した話 / Porting react to hyperapp
https://gbdaitokai.connpass.com/event/94404/
Yuuki Sumida
September 01, 2018
More Decks by Yuuki Sumida
See All by Yuuki Sumida
stddev_popとstddev_sampの話 / stddev_pop and stddev_samp
razon
0
720
Monacaのビルド結果をSlackに通知したいマン[WIP] / Notify Monaca build results to Slack [WIP]
razon
0
490
ノベルティカンファレンス in 地方 / Novelty conference in local region
razon
0
890
おれたちのファイナルファンタジー勉強会 アンケート / Final Fantasy Survey
razon
1
290
フロントエンドわからなさすぎるのでVue CLIが吐き出すファイルを読む / Read the files generated by Vue CLI
razon
0
1.1k
今の飲みは次の飲みへ[完結編] / For the current drinking party to the next drinking party -final version-
razon
0
74
今の飲みは次の飲みへ / For the current drinking party to the next drinking party
razon
0
72
大都会アワード2017 / Daitokai awards 2017
razon
0
960
合体事故した話
razon
0
710
Other Decks in Programming
See All in Programming
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
830
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
180
symfony/aiとlaravel/boost
77web
0
120
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
技術記事、 専門家としてのプログラマ、 言語化
mizchi
14
7.3k
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
230
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
340
Webフレームワークの ベンチマークについて
yusukebe
0
190
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
820
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
340
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
730
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Six Lessons from altMBA
skipperchong
29
4.3k
The browser strikes back
jonoalderson
0
1.4k
30 Presentation Tips
portentint
PRO
1
340
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
380
How GitHub (no longer) Works
holman
316
150k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
340
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
460
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
890
Transcript
昔 R e a c t で 書 い た
コ ー ド を H y p e r a p p に 移 植 し た 話 合 同 勉 強 会 i n ⼤ 都 会 岡 ⼭ - 2 0 1 8 S u m m a e r - # g b d a i t o k a i
A B O U T M E Yuuki Sumida(@razon) Information
Network co.,ltd
昔 R e a c t で 書 い た
コ ー ド を H y p e r a p p に 移 植 し た 話 合 同 勉 強 会 i n ⼤ 都 会 岡 ⼭ - 2 0 1 8 S u m m a e r - # g b d a i t o k a i
React Hyperapp …今更説明するまでもないよね? https://github.com/hyperapp/hyperapp 軽量 コアは398⾏ exportされている関数はhとappのふたつのみ
import { h, app } from "hyperapp" const state =
{ count: 0 } const actions = { down: value => state => ({ count: state.count - value }), up: value => state => ({ count: state.count + value }) } const view = (state, actions) => ( <div> <h1>{state.count}</h1> <button onclick={() => actions.down(1)}>-</button> <button onclick={() => actions.up(1)}>+</button> </div> ) app(state, actions, view, document.body) State Actions View
https://kampa.me/
State
Actions
View
移植してみて(完⾛した感想) 割と楽勝だった (Viewの互換性が⾼かったおかげ?) 規模あんまり⼤きくないんだけどもういい加減直接DOM いじるのはからい、みたいなところによさそう!
カ ン パ お 願 い し ま す ま
と め 終 @razon