About styling a table dynamically and adding or removing columns
The columns wraps weirdly and I can’t figure out why it is happening. const [isHidden, setIsHidden] = useState([]); const { data: leadsData, isPending } = useLeads(); let columns = tableHead.length - isHidden.length const handleVisiblity = (id) => { setIsHidden((prevHidden) => { if (prevHidden.includes(id)) { return prevHidden.filter((hiddenId) => hiddenId !== id); } else { return [...prevHidden,