Zscaler Interview Question

implement code for alerts const [alerts, setAlerts] = useState([]); how to add alerts (use setstate update function ) remove and more...