Universal Applications
Stepan Parunashvili
1
@stopachkawww.stepanp.com
2
Who am I?
@stopachkawww.stepanp.com
3
Who am I?
Universal Applications
4
27
routingvalidationviews
28
routingvalidationviews
c00l animations
29
routingvalidationviews
c00l animations(in some browsers...b^.^d)
40
routingvalidationviews
41
...routing
...validation
...views
routingvalidationviews
is it just the way things are?
45
48
routingvalidationviews
50
what if we made our own representation of the dom...
win 1: code sharing
52
win 2: perceived performance
53
Can we build this?
55
*rolls up sleeves*
56
81
load client side react
client.js
...Now the views are shared
83
What's the catch?
84
build tools(webpack, babel & family)
85
92
load client side react
components.js
93
load client side react
routes.js
94
load client side react
client.js
95
load client side react
client.js
show it working
96
101
server.jsserver.js
show it working
102
How about data fetching?
103
106
components.js
...but there's a library for that
116
react-resolver
117
is it all rosy?
118
but the payoff?
120
124
routingvalidationviews
wait... single-threaded backend?
125
Clojurescript anyone?
126
that's it : )
127