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
sip-of-reactjs
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Prathamesh Sonpatki
July 25, 2015
910
2
Share
sip-of-reactjs
Check bit.ly/sip-of-reactjs
Prathamesh Sonpatki
July 25, 2015
More Decks by Prathamesh Sonpatki
See All by Prathamesh Sonpatki
Secrets to Monitor Kubernetes Workloads
prathamesh
1
110
The Complete Handbook to OpenTelemetry Metrics
prathamesh
1
75
Breaking down the Pillars of Observability: From data to outcomes
prathamesh
0
98
Monitoring vs. Debugging
prathamesh
0
170
Handling High Cardinality in Observability
prathamesh
1
110
Setting up Monitoring for Kubernetes
prathamesh
0
300
Monitoring vs. Debugging - SRE BLR Meetup
prathamesh
0
92
Monitoring vs. Debugging - IG Meetup 22nd July
prathamesh
2
110
Pune_User_Group.pdf
prathamesh
0
110
Featured
See All Featured
Optimizing for Happiness
mojombo
378
71k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
120
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
260
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
89
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
Accessibility Awareness
sabderemane
0
95
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Transcript
Sip of React.JS Prathamesh Sonpatki @_cha1tanya
None
Agenda http://bit.ly/sip-of-reactjs
Open Library Search Project
React
Build UI
V in MVC
Simple
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
Hello World
"The secret to building large apps is never build large
apps. Break your applications into small pieces. Then, assemble those testable, bite-sized pieces into your big application" Justin Meyer, author of CanJS
Components
Component is fn()
Reusable
Composable
Separation of concerns
Let’s look closely
ಠ_ಠ
JSX
None
JSX is like a healthy vegetable that tastes like decadent
chocolate cake. You feel guilty, but it’s good. Eric Elliot
Give it 5 minutes https://signalvnoise.com/posts/3124- give-it-five-minutes
One book at a time
No templates
Any sufficiently complicated templating language contains an ad hoc, informally-specified,
bug-ridden, slow implementation of a turing complete programming language. - Jasim A Basheer
List of books
React === JavaScript #=> true
Managing Data
Data changing over time is root of evil Pete Hunt
Props
Immutable
One way data flow
Parent to Child
Child to Parent ????
propTypes
State
State is internal
getInitialState()
Responding to state changes
setState()
Refresh
Re-Rendering the component
Re-Rendering the component tree
Will it be too slow?
Virtual DOM
Diff
Minimal set of changes
Batch updates
Nothing is new!
Component Lifecycle hooks
componentWillMount componentDidMount componentWillReceiveProps componentWillUnmount componentDidUnmount
Some patterns
Avoid state as much as possible
props > state
Dumb components
Learning Curve
Just JavaScript
Just JavaScript & JSX
Just JavaScript
Easy to sneak into existing projects
Let me know your experience!
Thanks! @_cha1tanya @BigBinary