JSFiddle - React, Tailwind, and code Playground

by cheongjin kim

HTML

<script src="https://code.jquery.com/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.0.1/Rx.min.js"></script>

<input placeholder="input text...">
<div id="result">
</div>
</div>

JavaScript

var $result = $('#result');
var $input = $('#input');
var next = function(result) {
	console.log(result);
  $result.html(result);
};
Rx.Observable.of(1,2,3,4,5)
.filter(function(v) {
	return v%2 == 0;
}).subscribe(next);

Rx.Observable.fromEvent($input)