import React, { useState } from 'react'; import { InputText } from 'primereact/inputtext'; import { Button } from 'primereact/button'; import { InputTextarea } from 'primereact/inputtextarea'; import { Dropdown } from 'primereact/dropdown'; const FormAdminSistema = () => { const [dropdownItem, setDropdownItem] = useState(null); const dropdownItems = [ { name: 'Option 1', code: 'Option 1' }, { name: 'Option 2', code: 'Option 2' }, { name: 'Option 3', code: 'Option 3' } ]; return (
Advanced
setDropdownItem(e.value)} options={dropdownItems} optionLabel="name" placeholder="Select One">
) } const comparisonFn = function (prevProps, nextProps) { return prevProps.location.pathname === nextProps.location.pathname; }; export default React.memo(FormAdminSistema, comparisonFn);