<Route
path="/test/child"
render={(props) => (
<Child
{...props}
handleClick={this.handleClick}
/>
)}
/>
<Route
path="/test/child"
render={(props) => (
<Child
{...props}
handleClick={this.handleClick}
/>
)}
/>
本文标题:react的Route组件传值
本文链接:https://www.haomeiwen.com/subject/raeldctx.html
网友评论