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