You will get one of these:
Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined(…) ReactCompositeComponent.js:870 Uncaught TypeError: Cannot read property 'displayName' of undefined
if you try to:
Note: if you want to skip history behind this, and just looking for final result see: rx-react-container
When I just started using RxJS with React, I was subscribing to observables in
componentDidMount and disposing subscriptions at
But, soon I realised that it is not fun to do all that subscriptions(that are just updating property in component state) manually, and written mixin for this...
Later I have rewritten it as "high order component" and added possibility to pass also obsarvers that will receive events from component.
|<?xml version="1.0" encoding="utf-8"?>|
|<project name="sample-require-js" default="" basedir=".">|
|<!-- properties -->|
|<property name="r.js" value="_build/rjs/r.js" />|
|<property name="closure.jar" value="_build/closure/compiler.jar" />|
|<property name="rhino.jar" value="_build/rhino/js.jar" />|
|<property name="js.build" value="_build/js.build.js" />|
|<property name="css.build" value="_build/css.build.js" />|