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
1
130
The way of React
Talk on React.JS which is a powerful front-end library open sourced by facebook.
Rajika Imal
July 21, 2016
Tweet
Share
More Decks by Rajika Imal
See All by Rajika Imal
Next generation Web UIs with Svelte
rajikaimal
1
110
Deno - A new perspective on server side JavaScript
rajikaimal
0
40
NodeCloud - The Node.js API for open cloud
rajikaimal
1
120
Gentle introduction to deep learning
rajikaimal
1
42
Google Summer of Code - How to get started?
rajikaimal
1
120
Other Decks in Programming
See All in Programming
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
840
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
6
1.4k
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
390
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
nekko cloudにおけるProxmox VE利用事例
irumaru
3
440
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
190
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
400
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
Featured
See All Featured
Scaling GitHub
holman
458
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Become a Pro
speakerdeck
PRO
26
5k
Designing Experiences People Love
moore
138
23k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
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