From ac993ae1d6e9cf4ba041786bdaacc4c275b80590 Mon Sep 17 00:00:00 2001 From: luker <714837275@qq.com> Date: Fri, 15 Mar 2019 11:07:17 +0800 Subject: [PATCH] =?UTF-8?q?render=20=E6=96=B9=E6=B3=95=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=20=E9=9C=80=E8=A6=81=E6=9C=89return=20=E5=9C=A8Tutorial=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=B8=AD=20=E7=9A=8419=E8=A1=8C=E6=9C=89?= =?UTF-8?q?=E9=81=97=E6=BC=8F,=20=E8=A1=A5=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Authorized/demo/secured.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Authorized/demo/secured.md b/src/components/Authorized/demo/secured.md index 1e9537af..c030300e 100644 --- a/src/components/Authorized/demo/secured.md +++ b/src/components/Authorized/demo/secured.md @@ -16,7 +16,9 @@ const { Secured } = RenderAuthorized('user'); @Secured('admin') class TestSecuredString extends React.Component { render() { - ; + return ( + ; + ) } } ReactDOM.render( -- GitLab