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
28
0
Share
vue.js ≒ react
Kaneko Takeshi
December 13, 2019
More Decks by Kaneko Takeshi
See All by Kaneko Takeshi
オープンソースライセンスについて勉強する定期
tkckaneko
0
38
Eye Tracking on the Browser
tkckaneko
0
93
IEEE754を完全に理解した
tkckaneko
1
83
CSSのトレンドをみんなで見よう -2021年-
tkckaneko
0
99
多分これが一番早いと思います
tkckaneko
0
29
暗黒面の話
tkckaneko
0
30
CSR / SSR / SSG / JAMstack
tkckaneko
0
77
BOLT
tkckaneko
0
38
CSS Logical Properties and Values
tkckaneko
0
49
Other Decks in Technology
See All in Technology
Dynamic Workersについて
yusukebe
2
570
個人の発見を、組織の知恵に 〜生成AI活用を"探索"から"組織の仕組み"へ〜
kintotechdev
2
770
はじめてのDatadog
kairim0
0
260
Platform engineering for developers, architects & the rest of us (AI agents)
danielbryantuk
0
170
美味しいスイスチーズを作ろう🧀🐭
taigamikami
1
230
Unlocking the Apps
pimterry
0
180
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
50k
AI Engineering Summit Tokyo 2026 AIの前に、やることがある 〜医療データ企業の4フェーズ〜
dtaniwaki
0
1.3k
Mastering Ruby Box
tagomoris
3
140
Diagnosing performance problems without the guesswork
elenatanasoiu
0
150
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
380
オンコールの負荷軽減のためのBits Assistant 活用方法 / How to Use Bits Assistant to Reduce the Workload on On-Call Staff
sms_tech
1
380
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
600
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
200
The Limits of Empathy - UXLibs8
cassininazir
1
340
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
The browser strikes back
jonoalderson
0
1.1k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
380
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
310
The Spectacular Lies of Maps
axbom
PRO
1
780
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
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