<div className="content">
<FormCard headerName={headerName ? headerName : ''}>
{children
? React.cloneElement(children, { selectedMenuId : selectedMenuId })
: ""}
</FormCard>
</div>
I am sending the selected MenuId from here, but the value is not coming.
function Config({selectedMenuId}) {
return (
your text
);
};
export default Config;
const handleMenuItemClick = (id) => {
setSelectedMenuId(id);
};
The ID value appears full, for example 27.