react的Route组件传值
2019年8月2日 1 min read
<Route
path="/test/child"
render={(props) => (
<Child
{...props}
handleClick={this.handleClick}
/>
)}
/>
<Route
path="/test/child"
render={(props) => (
<Child
{...props}
handleClick={this.handleClick}
/>
)}
/>