我使用React Router为我的React.js应用程序提供了以下结构:
var Dashboard = require('./Dashboard');
var Comments = require('./Comments');
var Index = React.createClass({
  render: function () {
    return (
        <div>
            <header>Some header</header>
            <RouteHandler />
        </div>
    );
  }
});
var routes = (
  <Route path="/" handler={Index}>
    <Route path="comments" handler={Comments}/>
    <DefaultRoute handler={Dashboard}/>
  </Route>
);
ReactRouter.run(routes, function (Handler) {
  React.render(<Handler/>, document.body);
});
我想将一些属性传递给Comments组件.
(通常我会这样做<Comments myprop="value" />)
使用React Router,最简单,最正确的方法是什么?
我正在解雇一个方法:
this.transitionTo('route', {},{search: this.state.search, type: this.state.type});
它在URL中传递查询参数 http://...route?search=%param10&type=param2
是否有相同的方法传递这些参数而不在URL中打印?