Skip to content

Commit 4d616e6

Browse files
committed
update example
1 parent c8287e4 commit 4d616e6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

example/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ function main(sources) {
88

99
const increment$ = xs.periodic(1000).mapTo(x => x + 1);
1010

11+
const btnSel = Symbol();
12+
1113
const reset$ = sources.react
12-
.select('btn')
14+
.select(btnSel)
1315
.events('click')
1416
.mapTo(() => 0);
1517

@@ -20,7 +22,7 @@ function main(sources) {
2022
const vdom$ = count$.map(i =>
2123
h('div', [
2224
h('h1', `Hello ${i} times`),
23-
h('button', {selector: 'btn'}, 'Reset'),
25+
h('button', {sel: btnSel}, 'Reset'),
2426
]),
2527
);
2628

example/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.0",
44
"private": true,
55
"dependencies": {
6-
"react": "16.4.x",
7-
"react-dom": "^16.4.1",
8-
"parcel": "^1.9.4",
6+
"react": "16.9.x",
7+
"react-dom": "16.9.x",
8+
"parcel": "^1.12.3",
99
"xstream": "11.x.x"
1010
},
1111
"scripts": {

0 commit comments

Comments
 (0)