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
920
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
78
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
93
Monitoring vs. Debugging - IG Meetup 22nd July
prathamesh
2
120
Pune_User_Group.pdf
prathamesh
0
110
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
Context Engineering - Making Every Token Count
addyosmani
9
860
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
400
Agile that works and the tools we love
rasmusluckow
331
21k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
220
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
130
Faster Mobile Websites
deanohume
310
31k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
680
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
230
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