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
vue.js ≒ react
Search
Kaneko Takeshi
December 13, 2019
Technology
31
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
vue.js ≒ react
Kaneko Takeshi
December 13, 2019
More Decks by Kaneko Takeshi
See All by Kaneko Takeshi
オープンソースライセンスについて勉強する定期
tkckaneko
0
44
Eye Tracking on the Browser
tkckaneko
0
99
IEEE754を完全に理解した
tkckaneko
1
85
CSSのトレンドをみんなで見よう -2021年-
tkckaneko
0
100
多分これが一番早いと思います
tkckaneko
0
31
暗黒面の話
tkckaneko
0
31
CSR / SSR / SSG / JAMstack
tkckaneko
0
79
BOLT
tkckaneko
0
40
CSS Logical Properties and Values
tkckaneko
0
55
Other Decks in Technology
See All in Technology
[しろおび夏祭り2026] チャットするAIから、作業するAIへ - 使われ方の変化と、その裏側で起きていること
kk0n
0
1.6k
plamo-3-translateの開発
pfn
PRO
0
280
ラジオの科学
frievea
0
210
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
2
780
モノリス Rails でも日中に rails db:migrate を走らせたい! / Daytime rails db:migrate on Monolithic Rails!
euglena1215
3
470
Goでデータパイプラインを作ろう
sansantech
PRO
0
250
Eight Engineering Unit 紹介資料
sansan33
PRO
3
8.1k
【CEDEC2026】『GRANBLUE FANTASY: Relink - Endless Ragnarok』のバトル制作事例 ~最高のキャラゲーを目指して~
cygames
PRO
0
200
新しい SLO が良い感じにハマっている話
z63d
4
2.1k
PLaMoを毎日の開発で使い育てていく
pfn
PRO
0
180
ボトムアップ文化が強い組織で セキュリティをどう根付かせていくかの現在進行形の話 / Making Security Stick in a Bottom-Up Organization
yamaguchitk333
0
130
組織にどうSREを根付かせるか?〜IVRyの場合〜
abnoumaru
0
320
Featured
See All Featured
We Are The Robots
honzajavorek
0
290
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
420
Why Our Code Smells
bkeepers
PRO
340
58k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
390
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
The World Runs on Bad Software
bkeepers
PRO
72
12k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
New Earth Scene 8
popppiees
3
2.5k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
340
Transcript
vue.js ≒ react
vue.jsはreact
component vue.js <p v-if="isActive">Paragraph</p> react {isActive && <p>Paragraph</p>}
component vue.js <li v-for="item in items" :key="item.key"> {{ item.title }}
</li> react {items.map(item => ( <li key={item.key}>{item.title}</li> ))}
component vue.js <p v-show="isShow">paragraph</p> react <p style={{display: isShow ? 'initial'
: 'none'}}> paragraph </p>
component vue.js <p :class="{'active': isActive}">Paragraph</p> react ・・・
component vue.js <p v-html="Paragraph"></p> react <p dangerouslySetInnerHTML={{__html: 'Paragraph'}} />
component vue.js <button @click.prevent="handleClick"> Send </button> react <button onClick={handleClick}>Send</button>
ステート管理 vue.js data() { return {count: 0} } react const
[count, setCount] = useState(0);
DOM参照 vue.js <div ref="target">...</div> react const target = useRef(); return
( <div ref={target}>...</div> );
算出プロパティ vue.js computed: { fullName() { return `${this.firstName} ${this.lastName}`; }
}
算出プロパティ react const [firstName, setFirstName] = useState("John"); const [lastName, setlastName]
= useState("Doe"); const getFullName = () => `${firstName} ${lastName}`; const fullName = useMemo(getFullName, [firstName, lastName]);
監視プロパティ vue.js watch: { name(newVal, oldVal) {} } react ・・・
vue.jsはreact