У меня странная ошибка. Мой импорт выглядит так:
import { InputText } from "primereact/inputtext";
import { SelectButton } from "primereact/selectbutton";
import { Accordion, AccordionTab } from "primereact/accordion";
Работает все, кроме Accordion и AccordionTab
return (
<>
<InputText
value={state.value}
onChange={e =>
setState(prevState => ({ ...prevState, value: e.value }))
}
/>
<SelectButton
value={state.city}
options={state.citySelectItems}
onChange={e =>
setState(prevState => ({ ...prevState, city: e.value }))
}></SelectButton>
<Accordion>
<AccordionTab header='Header I'>Content I</AccordionTab>
<AccordionTab header='Header II'>Content II</AccordionTab>
<AccordionTab header='Header III'>Content III</AccordionTab>
</Accordion>
</>
);
Имеет эту ошибку:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `Accordion`.