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
The way of React
Search
Rajika Imal
July 21, 2016
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The way of React
Talk on React.JS which is a powerful front-end library open sourced by facebook.
Rajika Imal
July 21, 2016
More Decks by Rajika Imal
See All by Rajika Imal
Next generation Web UIs with Svelte
rajikaimal
1
120
Deno - A new perspective on server side JavaScript
rajikaimal
0
47
NodeCloud - The Node.js API for open cloud
rajikaimal
1
140
Gentle introduction to deep learning
rajikaimal
1
50
Google Summer of Code - How to get started?
rajikaimal
1
130
Other Decks in Programming
See All in Programming
これって Effect でできたのでは? / TSKaigi Mashup Kansai #2
susisu
0
240
Go 1.27 における memory allocation の高速化
andpad
0
190
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
260
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
1.8k
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
380
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
470
仕様駆動開発の消費期限
watany
20
8.4k
バグを直したら useEffect が消えた
colorful12
2
140
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
130
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
320
AIを紡ぐPMのお話
swdtkuy
0
110
OpenSpecのproposalにbrainstormingを持たせてみた
tigertora7571
1
240
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
470
Un-Boring Meetings
codingconduct
0
390
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
330
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
790
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
370
Automating Front-end Workflow
addyosmani
1369
210k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
470
Paper Plane (Part 1)
katiecoart
PRO
1
10k
A Tale of Four Properties
chriscoyier
163
24k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
280
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Transcript
The way of React
@rajikaimal @rajikaimal @rajikaimal
Agenda • Introduction to React.JS • Few facts on React
internals • Brief introduction to Flux architecture • Demo • Angular vs React comparison
What’s React.JS A JavaScript library for creating user interfaces Open
source Not a framework !!!
Out of the box • Component based • Learn once
write anywhere • Declarative • Loosely coupled • No routing solutions • No Ajax support
None
React is the V in MVC Model Controller View React
Components to the rescue • Declarative syntax (JSX) • Tightly
coupled UI logic and description • Cohesive • Reusable • Own properties (props) and states • Uses vanilla JavaScript • Supports ES2015/ES6
Thinking in React const Tweet = React.createClass({ render: function() {
return ( <div> <input type="text" value={this.props.tweetText} /> </div> ); } });
None
None
Virtual DOM - an abstraction of real DOM Tree diff
algorithm
MVC - cascading updates
None
Flux architecture An application architecture for client side web applications
one directional data flow
Demo time https://github.com/rajikaimal/github-scraper
Angular vs React VS
Angular vs React • Steep learning curve • Regular DOM
• 2 way data binding • No unique solution for server side rendering • Smooth learning curve • Virtual DOM • 1 way data binding • Supports server side rendering
What’s next ? • Unit testing : Jest • React
Devtools • Redux • Server side rendering
None
Thank you ! @rajikaimal @rajikaimal @rajikaimal