Question: how to export data to excel in react?
Answer: import React, { Component } from 'react' import axios from 'axios'; import ReactHTMLTableToExcel from 'react-html-table-to-excel'; export class ExportExcel extends Component { constructor(props) { super(props) this.state = { ProductData: []