JSFiddle - React, Tailwind, and code Playground

JavaScript

var formData = {
    "userName": "user1",
        "email": "email@mail.com",
        "password": "123456",
        "confirmPassword": "123456",
        "name": "name1",
        "deviceId": "12121212121212"
};


// process the form
$.ajax({
    type: 'POST', 
    crossDomain: true,
    url: 'http://yolp.ac-web-systems.eu/api/account/register', 
    data: formData, // our data object
    dataType: 'json' // what type of data do we expect back from the server
})
// using the done promise callback
.done(function (data) {

    // log data to the console so we can see
    alert(data);


    // here we will handle errors and validation messages
});