... fetchData(url) { this.setState({ isLoading: true }) fetch(url) .then((response) => { console.log(response) if (!response.ok) { throw Error(response.statusText); } this.setState({ isLoading: false }) return response }) .then((response) => response.json()) .then((data) => { let countTodo = this.state.countTodo const todos = data.map(data => { const todo = Object.assign({}, data, { id: countTodo+