情况:
- 我在 Meteor 应用程序中使用 React。
- 我的身份验证包:
accounts-password
;useraccounts:core
- 我还使用在我的反应组件
gadicc:blaze-react-component
中呈现{{> atForm }}
模板 =><Blaze template="atForm" />
问题:
我不知道什么应该是正确的语法来保护用户帐户指南中描述的特定页面, 但使用 react。
假设我想安全地<Mypage />
从“./mypage.jsx”导入
我如何调用{{> ensureSignedIn template="myTemplate"}}
和替换“ myTemplate”<Mypage />
?
我试过<Blaze template="atForm" template={Mypage} />
没有成功...
甚至有可能做这样的事情吗?