JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ajax({
  type: 'post',
  url: '/userInfo/getUserInfo',
  dataType: 'json',
  async: false,
  data: {
    a: 2,
    b: 2
  }
});