JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › documentation should be more detailed › Reply To: documentation should be more detailed
May 9, 2022 at 8:56 pm
#103180
Joseph Norris
Blocked
Here you go. This generates the error.
import {createRef, useEffect} from 'react'
import {DropDownList, ListItem, ListItemsGroup} from 'smart-webcomponents-react/dropdownlist'
const Dropdowns = () => {
const dropdownlist = createRef<DropDownList>()
useEffect(() => {}, [dropdownlist])
return (
<div>
<DropDownList ref={dropdownlist} selectedIndexes={[0]}>
<ListItem value='1'>Affogato</ListItem>
</DropDownList>
</div>
)
}
export default Dropdowns
- This reply was modified 2 years, 5 months ago by Joseph Norris.