Hi team,
I'm trying the example (DropDownList, itemRender) here: https://www.telerik.com/kendo-react-ui/components/dropdowns/dropdownlist/custom-rendering/ but using last react version (18.2.0) the code give an error:
TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided.
| const index = itemProps.index;
| const itemChildren = (
> | <span style={{ color: "#00F" }}>
| ^^^^
| {li.props.children} {index}
| </span>
);
Work using a cast:
<span style={{ color: "#00F" }}>
{li.props.children as ReactNode} {index}
</span>
Regards