Reactjs – I want to export my html table to an xlsx file but the formatting is screwed
import React, { useEffect, useState } from 'react'; import * as XLSX from 'xlsx'; export default function AnnualReporTest() { const thStyles = { border: '1px solid black', padding: '10px', textAlign: 'center', backgroundColor: 'lightgray', }; const exportToExcel = () => {…