Skip to content

Commit 9abc0f6

Browse files
committed
removed depreciated React.addons.classSet
1 parent baa4e47 commit 9abc0f6

File tree

6 files changed

+62
-59
lines changed

6 files changed

+62
-59
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ Examples of using [hipertracker:meteor-reactjs](https://github.com/hipertracker/
44

55
## Usage
66
```
7-
$ git clone https://github.com/hipertracker/meteor-reactjs-examples
8-
$ cd meteor-reactjs-examples/examples/leaderboard
9-
$ meteor add hipertracker:reactjs
10-
$ meteor
7+
git clone https://github.com/hipertracker/meteor-reactjs-examples
8+
cd meteor-reactjs-examples/examples/leaderboard
9+
meteor add hipertracker:reactjs
10+
meteor add maxharris9:classnames
11+
meteor
1112
```
1213

1314
The leaderboard example is based on [that code](https://github.com/reactjs/react-meteor/tree/master/examples/leaderboard) but it's upgraded to new Meteor and new JSX syntax, with enabled ES6 transforms.

examples/leaderboard/.meteor/.finished-upgraders

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
notices-for-0.9.0
66
notices-for-0.9.1
77
0.9.4-platform-file
8+
notices-for-facebook-graph-api-2

examples/leaderboard/.meteor/packages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
meteor-platform
88
autopublish
99
insecure
10+
maxharris9:classnames
11+
hipertracker:reactjs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
METEOR@1.0.3.2
1+
METEOR@1.1.0.2
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
application-configuration@1.0.4
2-
autopublish@1.0.2
3-
autoupdate@1.1.5
4-
base64@1.0.2
5-
6-
blaze@2.0.4
7-
blaze-tools@1.0.2
8-
boilerplate-generator@1.0.2
9-
callback-hook@1.0.2
10-
check@1.0.4
11-
ddp@1.0.14
12-
deps@1.0.6
13-
ejson@1.0.5
14-
fastclick@1.0.2
15-
follower-livedata@1.0.3
16-
geojson-utils@1.0.2
17-
html-tools@1.0.3
18-
htmljs@1.0.3
19-
http@1.0.10
20-
id-map@1.0.2
21-
insecure@1.0.2
22-
jquery@1.11.3
23-
json@1.0.2
24-
launch-screen@1.0.1
25-
livedata@1.0.12
26-
logging@1.0.6
27-
28-
29-
30-
31-
32-
mongo@1.0.11
33-
34-
35-
36-
reactive-dict@1.0.5
37-
38-
39-
40-
41-
session@1.0.5
42-
43-
44-
templating@1.0.11
45-
46-
47-
48-
49-
webapp@1.1.6
50-
1+
autopublish@1.0.3
2+
autoupdate@1.2.1
3+
base64@1.0.3
4+
binary-heap@1.0.3
5+
6+
blaze-tools@1.0.3
7+
boilerplate-generator@1.0.3
8+
callback-hook@1.0.3
9+
check@1.0.5
10+
ddp@1.1.0
11+
deps@1.0.7
12+
ejson@1.0.6
13+
fastclick@1.0.3
14+
geojson-utils@1.0.3
15+
hipertracker:reactjs@0.0.12
16+
html-tools@1.0.4
17+
htmljs@1.0.4
18+
http@1.1.0
19+
id-map@1.0.3
20+
insecure@1.0.3
21+
jquery@1.11.3_2
22+
json@1.0.3
23+
launch-screen@1.0.2
24+
livedata@1.0.13
25+
logging@1.0.7
26+
maxharris9:classnames@0.0.1
27+
28+
29+
30+
31+
32+
mongo@1.1.0
33+
34+
35+
36+
reactive-dict@1.1.0
37+
38+
39+
40+
41+
session@1.1.0
42+
43+
44+
templating@1.1.1
45+
46+
47+
48+
49+
webapp@1.2.0
50+

examples/leaderboard/Leaderboard.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var Leaderboard = React.createClass({
5353
score={model.score}
5454
className={model._id === _id ? "selected" : ""}
5555
onClick={this.selectPlayer.bind(this, model._id)}
56-
/>
56+
/>
5757
)
5858
},
5959

@@ -75,7 +75,7 @@ var Leaderboard = React.createClass({
7575
type="button"
7676
value="Give 5 points"
7777
onClick={this.addFivePoints}
78-
/>
78+
/>
7979
</div>
8080
);
8181

@@ -92,8 +92,7 @@ var Leaderboard = React.createClass({
9292
Player = React.createClass({
9393
render() {
9494
var {name, score, className, ...other} = this.props;
95-
var cx = React.addons.classSet;
96-
var classes = cx({
95+
var classes = classNames({
9796
player: true,
9897
selected: className
9998
});

0 commit comments

Comments
 (0)