Try this:
 
  1. const requestOptions = {  
  2.         method: 'PUT',  
  3.         headers: { 'Content-Type': 'application/json' },  
  4.         body: JSON.stringify({ title: 'React PUT Request Example' })  
  5.     };  
  6.     fetch('', requestOptions)  
  7.         .then(response => response.json())  
  8.         .then(data => console.log(data));  
Also for reference:
https://jasonwatmore.com/post/2020/11/02/react-fetch-http-put-request-examples