--- order: 0 title: zh-CN: 基础 en-US: Basic --- Simplest of usage. ```jsx import RenderAuthorized from 'ant-design-pro/lib/Authorized'; import { Alert } from 'antd'; const Authorized = RenderAuthorized('user'); const noMatch = ; ReactDOM.render( mountNode, ); ``` user Array ```jsx import RenderAuthorized from 'ant-design-pro/lib/Authorized'; import { Alert } from 'antd'; const Authorized = RenderAuthorized('user'); const noMatch = ; ReactDOM.render( mountNode, ); ``` user Funtion ```jsx import RenderAuthorized from 'ant-design-pro/lib/Authorized'; import { Alert } from 'antd'; const Authorized = RenderAuthorized('user'); const noMatch = ; const Havepermission = () => { return false; }; ReactDOM.render( mountNode, ); ``` user Promise ```jsx import RenderAuthorized from 'ant-design-pro/lib/Authorized'; import { Alert } from 'antd'; const Authorized = RenderAuthorized('user'); const noMatch = ; const Havepermission = new Promise((reslove,reject)=>{ // Call reslove on behalf of passed setTimeout(()=>reslove(),1000) }); ReactDOM.render( mountNode, ); ```