dual-salmonD
Refine3y ago
13 replies
dual-salmon

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 ?
Was this page helpful?