import React, {useState} from 'react'; const FAQItem = (props) => { const { question, answer } = props const [isExpanded, setIsExpanded] = useState(false) return ( { setIsExpanded(!isExpanded) }}> {question} {answer} ) } export default FAQItem;