提交 ac993ae1 编写于 作者: lucky_luker's avatar lucky_luker 提交者: 偏右

render 方法里面 需要有return

在Tutorial 文档中 的19行有遗漏, 补上
上级 c98963e6
......@@ -16,7 +16,9 @@ const { Secured } = RenderAuthorized('user');
@Secured('admin')
class TestSecuredString extends React.Component {
render() {
<Alert message="user Passed!" type="success" showIcon />;
return (
<Alert message="user Passed!" type="success" showIcon />;
)
}
}
ReactDOM.render(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册