skip to Main Content

React MUI Accordion always open one – Reactjs

import React, { useState } from "react"; import { Accordion, AccordionDetails, AccordionSummary, Typography } from "@mui/material"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; export default function DetailedAccordion() { const [expanded, setExpanded] = useState(null); const handleChange = (panel) => (event, isExpanded) => { setExpanded(isExpanded…

VIEW QUESTION
Back To Top
Search