JSFiddle - React, Tailwind, and code Playground

by Flexmonster Pivot Table

HTML

<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div id="pivot-container"></div>

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  global: {
    localization: "loc/it.json"
  },
  report: {
    localization: {
      "grid": {
        "blankMember": " ",
      }
    },
    dataSource: {
      data: getData(),

    },
    options: {
      grid: {
        type: "flat"
      }
    }
  }
});

function getData() {
  return [{
      "Name": "name",
      "Price": 2
    },
    {
      "Price": 2
    },
  ]
}