class App extends React.Component { render() { return (

Авторизация

); } } fetch('http://example.com',{ method: "POST", body: JSON.stringify(userData), headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, }).then(response => { response.json().then(data =>{ console.log("Successful" + data); }) })