ajuda pra fazer uma requisição POST

Viewed 14
export const newUsersAPI = async (newUser) => {
    await fetch('https://gorest.co.in/public/v2/users', {
       method: 'POST',
       headers: {'Content-Type':'application/json'},
       body: JSON.stringify(newUser)
    });
};
0 Answers
Related