import React from 'react'; import { SimpleList, SimpleListItem, SimpleListItemProps } from '@patternfly/react-core'; export const SimpleListUncontrolled: React.FunctionComponent = () => { const [activeItem, setActiveItem] = React.useState(0); const onSelect = ( selectedItem: React.RefObject | React.RefObject, selectedItemProps: SimpleListItemProps ) => { setActiveItem(selectedItemProps.itemId as number); }; const items = [ List item 1 , List item 2 , List item 3 ]; return ( {items} ); };