You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! If you want to go directly to the created post, you need to do the next thing:
Привiт! Якщо ви хочете відразу перейти в щойно створений пост, вам потрібно зробити наступне:
Hi! If you want to go directly to the created post, you need to do the next thing:
Привiт! Якщо ви хочете відразу перейти в щойно створений пост, вам потрібно зробити наступне:
fetch('http://localhost:8000/blogs',{
method: 'POST',
headers:{"Content-Type":"application/json"},
body: JSON.stringify(blog)
})
.then(response =>{return response})
.then(response => response.json())
.then((response) => history.push('/blogs/' + response.id))
The text was updated successfully, but these errors were encountered: