Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
React on Rails workshop at Conferencia.ROR
Search
Prathamesh Sonpatki
October 13, 2016
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
React on Rails workshop at Conferencia.ROR
Prathamesh Sonpatki
October 13, 2016
More Decks by Prathamesh Sonpatki
See All by Prathamesh Sonpatki
Secrets to Monitor Kubernetes Workloads
prathamesh
1
130
The Complete Handbook to OpenTelemetry Metrics
prathamesh
1
110
Breaking down the Pillars of Observability: From data to outcomes
prathamesh
0
120
Monitoring vs. Debugging
prathamesh
0
210
Handling High Cardinality in Observability
prathamesh
1
130
Setting up Monitoring for Kubernetes
prathamesh
0
330
Monitoring vs. Debugging - SRE BLR Meetup
prathamesh
0
120
Monitoring vs. Debugging - IG Meetup 22nd July
prathamesh
2
140
Pune_User_Group.pdf
prathamesh
0
130
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
450
Technical Leadership for Architectural Decision Making
baasie
3
630
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
550
sira's awesome portfolio website redesign presentation
elsirapls
0
490
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
490
Music & Morning Musume
bryan
48
7.5k
The untapped power of vector embeddings
frankvandijk
2
2k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
470
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Transcript
React on Rails workshop Prathamesh Sonpatki @_cha1tanya
None
Agenda
Why React?
Build UI
V in MVC
Declarative
if encodingCompleted removeLoader(); updateHeaderText(‘Encoding completed.’) else showLoader();
if encodingCompleted removeLoader(); updateHeaderText(‘Encoding completed.’) else showLoader(); if encodingCompleted <header>Encoding
Completed</header> else <div>Loading…</div>
Unconventional ideas
Components
None
<TweetCounts tweets=“3062” following=“509”/> <Tweets tweets={[..]}/> <Trends location=“pune" list={[..]} />
Reusable
None
Composable
None
Separation of concerns
No templates
React === JavaScript #=> true
Managing Data
Data changing over time is root of evil Pete Hunt
Props
One way data flow
State
Responding to state changes
Refresh
Re-Rendering the component
Re-Rendering the component tree
Re-Rendering
Isn’t it too slow?
Virtual DOM
Diff
Minimal set of changes
Nothing is new!
Let’s begin!
React❤Rails
react-rails + CDN packages
react_on_rails https://github.com/shakacode/ react_on_rails
sprockets_comm oner https://github.com/Shopify/sprockets- commoner
Thanks! @_cha1tanya @BigBinary http://blog.bigbinary.com http://videos.bigbinary.com https://github.com/prathamesh-sonpatki/react-rails-examples