Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- submitData(event) {
- fetch("http://localhost:53248/api/home/saveData", {
- method: 'POST',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({
- // userName: this.state.userName,
- // password: this.state.password,
- email: this.state.email
- })
- }).then((Response) => Response.json())
- .then((findresponse) => {
- if (findresponse.result == 'authenticated')
- alert("1");
- else
- alert("2");
- })
- }
Add Comment
Please, Sign In to add comment