I am new to React. I am trying to export JSON data that is displayed using the ‘react-data-table-component’ to a CSV file. I have followed the example from this link by copying the exact code snippet provided. Below is my code snippet and the corresponding error occurring during compilation. Could…