June 2016
Intermediate to advanced
910 pages
18h 59m
English
Now, with the Flux architecture in place, we will rethink how our React components get the data that they need to render. As you know, there are usually two sources of data for a React component:
jQuery.ajax() method or SnapkiteStreamClient.initializeStream()props objectWe want our React components not to use any external libraries to receive data. Instead, from now on, they will get that same data from stores. Keeping this plan in mind, let's refactor our Stream component.
Here is how it looks now:
var React = require('react'); var SnapkiteStreamClient = require('snapkite-stream-client'); var StreamTweet ...Read now
Unlock full access