【问题标题】:Adding accounts-ui not displaying with Leaderboard example添加未在排行榜示例中显示的帐户 UI
【发布时间】:2016-03-10 02:53:06
【问题描述】:

我采用了这个使用 React 和 Meteor 的示例实现,并想添加一些简单的东西,比如添加 blaze 登录: https://github.com/reactjs/react-meteor/tree/master/examples/leaderboard

按照本教程,我添加了 Wrapper 并将其放置在我的 app.jsx 的渲染中 https://www.meteor.com/tutorials/react/adding-user-accounts

render() {
return (
  <div className="outer">
  <AccountsUIWrapper />
  <div className="login">Login</div>
    <div className="logo"></div>
    <h1 className="title">Title</h1>
    <div className="subtitle">Subtitle</div>
    <Dashboard tasks={this.data.tasks}
      selectedTaskId={this.state.selectedTaskId}
      onTaskSelected={this.selectTask} />
    {this.getBottomBar()}
  </div>

它编译正确,没有错误,但没有任何显示。有人可以帮助新手吗?!

【问题讨论】:

    标签: meteor meteor-accounts meteor-react


    【解决方案1】:

    没关系。傻我忘了补充

    blaze-html-templates 我的包裹。 **注意我必须删除 static-html 因为它们有冲突。

    【讨论】:

      猜你喜欢
      • 2014-09-12
      • 2013-10-31
      • 1970-01-01
      • 2015-08-21
      • 1970-01-01
      • 2015-06-23
      • 2020-06-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多