НС
Size: a a a
НС
НС
PO
НС
НС
НС
PO
p
PO
K
N
componentDidMount() {
fetch('http://reqres.in/api/users/2')
.then(res => res.json())
.then(
(result) => {
this.setState({
isLoaded: true,
loaded_data: result.data
});
},
(error) => {
this.setState({
isLoaded: true,
error: error
});
}
)
}
{"data":{"id":2,"email":"janet.weaver@reqres.in","first_name":"Janet","last_name":"Weaver","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"}}
Что не так делаю?К
componentDidMount() {
fetch('http://reqres.in/api/users/2')
.then(res => res.json())
.then(
(result) => {
this.setState({
isLoaded: true,
loaded_data: result.data
});
},
(error) => {
this.setState({
isLoaded: true,
error: error
});
}
)
}
{"data":{"id":2,"email":"janet.weaver@reqres.in","first_name":"Janet","last_name":"Weaver","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"}}
Что не так делаю?DE
componentDidMount() {
fetch('http://reqres.in/api/users/2')
.then(res => res.json())
.then(
(result) => {
this.setState({
isLoaded: true,
loaded_data: result.data
});
},
(error) => {
this.setState({
isLoaded: true,
error: error
});
}
)
}
{"data":{"id":2,"email":"janet.weaver@reqres.in","first_name":"Janet","last_name":"Weaver","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"}}
Что не так делаю?N
DE
N
DE
DE
N