Rethinking the
View using React
Prathamesh Sonpatki
@_cha1tanya
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
Thank You!
Slide 4
Slide 4 text
React
Slide 5
Slide 5 text
Build UI
Slide 6
Slide 6 text
V in MVC
Slide 7
Slide 7 text
Simple
Slide 8
Slide 8 text
if encodingCompleted
removeLoader();
updateHeaderText(‘Encoding completed.’)
else
showLoader();
Slide 9
Slide 9 text
if encodingCompleted
removeLoader();
updateHeaderText(‘Encoding completed.’)
else
showLoader();
if encodingCompleted
Encoding Completed
else
Loading…
Slide 10
Slide 10 text
Unconventional
ideas
Slide 11
Slide 11 text
Components
Slide 12
Slide 12 text
var Hello = React.createClass({
render: function() {
return (
Hello React World!
);
}
});
React.render(,document.body);
Slide 13
Slide 13 text
Component is fn()
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
Slide 16
Slide 16 text
Reusable
Slide 17
Slide 17 text
var TimeLine = React.createClass({
render: function() {
return (
);
}
});
Slide 18
Slide 18 text
Composable
Slide 19
Slide 19 text
Separation of
concerns
Slide 20
Slide 20 text
var Hello = React.createClass({
render: function() {
return (
Hello React World!
)
}
});
Slide 21
Slide 21 text
var Hello = React.createClass({
render: function() {
return (
Hello React World!
)
}
});
Slide 22
Slide 22 text
ಠ_ಠ
Slide 23
Slide 23 text
var Hello = React.createClass({
render: function() {
return (
Hello React World!
)
}
});
Slide 24
Slide 24 text
JSX
Slide 25
Slide 25 text
JSX
Slide 26
Slide 26 text
JSX
Slide 27
Slide 27 text
JSX is so bad, it
even trolls Google!
Slide 28
Slide 28 text
No content
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
var Hello = React.createClass({
render: function() {
return (
Hello React World!
)
}
});
Slide 31
Slide 31 text
JSX is like a healthy vegetable
that tastes like decadent chocolate
cake. You feel guilty, but it’s good.
Eric Elliot
Slide 32
Slide 32 text
JSX is like Durian
Prathamesh Sonpatki
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
Give it 5 minutes
https://signalvnoise.com/posts/3124-
give-it-five-minutes
Slide 35
Slide 35 text
No templates
Slide 36
Slide 36 text
Any sufficiently complicated
templating language contains
an ad hoc, informally-specified,
bug-ridden, slow
implementation of a turing
complete programming
language.
- Jasim A Basheer
Slide 37
Slide 37 text
var tweets = [……]
tweets.map(function(tweet) {
return (
);
});
Slide 38
Slide 38 text
var tweets = [……]
tweets.map(function(tweet) {
return (
);
});
Slide 39
Slide 39 text
React === JavaScript
#=> true
Slide 40
Slide 40 text
Managing
Data
Slide 41
Slide 41 text
Data changing over
time is root of evil
Pete Hunt
Slide 42
Slide 42 text
Props
Slide 43
Slide 43 text
Updated the website with a list of the
fringe events
Thanks!
@_cha1tanya
@BigBinary
React video series
http://videos.bigbinary.com/categories/react
http://videos.bigbinary.com/categories/tiny-reactjs-concepts