Ошибку дает?
var data = {
"username": this.state.username,
"password": this.state.password
}
var str="Example"
fetch("
https://....", {
method: "POST",
headers: headers,
body: JSON.stringify(data,str)
})
.then(function(response){
return response.json();
})