---order:2title:zh-CN:使用方法作为参数en-US:Use function as a parameter---Use Function as a parameter```jsximportRenderAuthorizedfrom'ant-design-pro/lib/Authorized';import{Alert}from'antd';constAuthorized=RenderAuthorized('user');constnoMatch=<Alertmessage="No permission."type="error"showIcon/>;consthavePermission=()=>{returnfalse;};ReactDOM.render(<Authorizedauthority={havePermission}noMatch={noMatch}><Alertmessage="Use Function as a parameter passed!"type="success"showIcon/></Authorized>,mountNode,);```