Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
昔Reactで書いたコードをHyperappに移植した話 / Porting react to...
Search
Yuuki Sumida
September 01, 2018
Programming
300
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
Transcript
11 slides
昔 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
More Decks by Yuuki Sumida
See All by Yuuki Sumida
stddev_popとstddev_sampの話 / stddev_pop and stddev_samp
razon
0
760
Monacaのビルド結果をSlackに通知したいマン[WIP] / Notify Monaca build results to Slack [WIP]
razon
0
500
ノベルティカンファレンス in 地方 / Novelty conference in local region
razon
0
930
おれたちのファイナルファンタジー勉強会 アンケート / Final Fantasy Survey
razon
1
310
フロントエンドわからなさすぎるので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
86
今の飲みは次の飲みへ / For the current drinking party to the next drinking party
razon
0
84
大都会アワード2017 / Daitokai awards 2017
razon
0
980
合体事故した話
razon
0
730
Other Decks in Programming
See All in Programming
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
1.3k
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
510
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
710
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
680
Lean で手続き的プログラム の証明が書けるようになった
inoueasei
11
5.6k
Datadog を OTel にするメリットを考察する — Datadog との併用を実アプリで確かめる / Examining the Benefits of Moving Datadog to OTel — Testing OTel Alongside Datadog in a Real App
seike460
PRO
1
110
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
170
AppFunctionsの内部実装を紐解く
hiroaki404
1
130
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
440
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
The agentic SEO stack - context over prompts
schlessera
0
1k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
480
[SF Ruby Conf 2025] Rails X
palkan
3
1.6k
How to build a perfect <img>
jonoalderson
1
6.3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Exploring anti-patterns in Rails
aemeredith
4
590
Paper Plane
katiecoart
PRO
6
55k
Being A Developer After 40
akosma
PRO
92
590k
Designing for humans not robots
tammielis
254
26k