Practice
It is recommended to avoid asynchronous initialisation in the
componentDidMount() {
axios.get(`api/todos`)
.then((result) => {
this.setState({
messages: [...result.data]
})
})
}
Sign in and the lectures you have studied will be marked in this list.
Choose a course
Comments