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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Kaneko Takeshi
December 13, 2019
Technology
0
27
vue.js ≒ react
Kaneko Takeshi
December 13, 2019
Tweet
Share
More Decks by Kaneko Takeshi
See All by Kaneko Takeshi
オープンソースライセンスについて勉強する定期
tkckaneko
0
31
Eye Tracking on the Browser
tkckaneko
0
88
IEEE754を完全に理解した
tkckaneko
1
76
CSSのトレンドをみんなで見よう -2021年-
tkckaneko
0
93
多分これが一番早いと思います
tkckaneko
0
27
暗黒面の話
tkckaneko
0
24
CSR / SSR / SSG / JAMstack
tkckaneko
0
73
BOLT
tkckaneko
0
31
CSS Logical Properties and Values
tkckaneko
0
36
Other Decks in Technology
See All in Technology
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
120
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
350
Meshy Proプラン課金した
henjin0
0
250
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.6k
Tebiki Engineering Team Deck
tebiki
0
24k
プロポーザルに込める段取り八分
shoheimitani
1
170
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
2
130
What happened to RubyGems and what can we learn?
mikemcquaid
0
250
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
450
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
200
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
72
A Soul's Torment
seathinner
5
2.2k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Building Flexible Design Systems
yeseniaperezcruz
330
40k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
170
The Curious Case for Waylosing
cassininazir
0
230
The Pragmatic Product Professional
lauravandoore
37
7.1k
Code Review Best Practice
trishagee
74
20k
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