Sider component renderSider function property
const renderSider = () => {
if (render) {
return render({
dashboard: null,
items,
logout,
collapsed,
});
}
return (
<>
{items}
{logout}
</>
);
};
This is one of the function in Sider, what is the use of if(render) block ? and what is dashboard:null ?
if (render) {
return render({
dashboard: null,
items,
logout,
collapsed,
});
}
return (
<>
{items}
{logout}
</>
);
};
This is one of the function in Sider, what is the use of if(render) block ? and what is dashboard:null ?
