Commit ac993ae1 authored by luker's avatar luker Committed by 偏右

render 方法里面 需要有return

在Tutorial 文档中 的19行有遗漏, 补上
parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment