-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest1.txt
44 lines (34 loc) · 909 Bytes
/
test1.txt
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
38
39
40
41
42
43
44
class Logement extends Component {
constructor(props) {
super(props);
this.state = {
instructors: [],
instructorID : props.match.params.instructorID,
title: []
};
}
componentDidMount() {
fetch("./annonces.json")
.then(res => res.json())
.then((result) => {
this.setState({
instructors: result
});
},
)
}
render(){
//console.log("houra",this.props.match.description)
//console.log("yooo",this.props)
// console.log("testing",this.props.match)
return(
<div className="home">
<Logo />
<Navigation />
{this.props.match.params.id}
<Footer />
</div>
)
}
}
export default Logement;