editor for rx, POC stage. WIP
The target of this project is to provide a online web editor for developer to do flow-programming on rxjs, and connect it to react/angular code.
- rx chart
- rx code (logic)
[
onChange$.pipe(
map(e => e.target.value),
tap(text$),
),
onKeyPress$.pipe(
filter(e => e.key === 'Enter'),
tap(done$),
),
done$.pipe(
map(() => ({ id: Date.now(), title: text$.value, completed: false })),
map(todo => ([todo, ...todos$.value])),
tap(todos$),
),
done$.pipe(
mapTo(''),
tap(text$),
),
text$.pipe(
tap(set('text')),
),
...,
].forEach(o => o.subscribe())
- jsx code (view)
<>
<section className="todoapp">
<header className="header">
<h1>todos</h1>
<input
className="new-todo"
placeholder="What needs to be done?"
autoFocus
onChange={this.onChange}
onKeyPress={this.onKeyPress}
value={text}
/>
</header>
...
</>