JSFiddle - React, Tailwind, and code Playground
by brentmn
HTML
<button onclick="addProducts()">Add products</button>
JavaScript
function addProducts() {
$.post('/echo/json/',{
returnUrl: window.location.href
}, function(data){
alert('here');
window.location.href = window.location.href
});
}