Skip to content

Instantly share code, notes, and snippets.

View wmira's full-sized avatar

Warren Mira wmira

View GitHub Profile

Deprecating transferPropsTo

It's a common pattern in React to wrap a component in an abstraction. The outer component exposes a simple property to do something that might have more complex implementation details.

We used to have a helper function called transferPropsTo. We no longer support this method. Instead you're expected to use a generic object helper to merge props.

render() {
 return Component(Object.assign({}, this.props, { more: 'values' }));

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@wmira
wmira / gist:da83efa1831bcc234e74
Created October 21, 2014 15:17
Rxjs ForkJoin
var Rx = require("rx");
/**
* Using rxjs's fork join to wait for multiple remote ajax calls
*/
var remoteData = Rx.Observable.forkJoin(
Rx.Observable.fromPromise($.get('/api/product/list')),
Rx.Observable.fromPromise($.get('/api/channels/list')),
Rx.Observable.fromPromise($.get('/api/entity/list/PERSONNEL'))