-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.jsx
37 lines (33 loc) · 1.26 KB
/
home.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
class Home extends React.Component {
activeLink(eventKey){
localStorage.setItem('activeLink', eventKey)
}
render() {
return (
<div>
<div className="col-md-6">
<a href="#/nodejs/home" onClick={this.activeLink.bind(this, 2)}>
<img width="100%" className="col-md-12 thumbnail" src="./img/nodejs.jpg" alt=""/>
</a>
</div>
<div className="col-md-6">
<a href="#/nodejs/home">
<img width="100%" className="col-md-12 thumbnail" src="./img/reactjs.jpg" alt=""/>
</a>
</div>
<div className="col-md-6">
<a href="#/nodejs/home">
<img width="100%" className="col-md-12 thumbnail" src="./img/mongodb.jpg" alt=""/>
</a>
</div>
<div className="col-md-6">
<a href="#/nodejs/home">
<img width="100%" className="col-md-12 thumbnail" src="./img/angularjs.jpg" alt=""/>
</a>
</div>
</div>
)
}
}
export default Home;