如何将下面的价值参与者传递给Befunde类。我已经尝试了一段时间,但很遗憾没有用
render() {
const {classes, player} = this.props;
console.log(player)
return (
<div className={classes.content}>
<div className={classes.contentShift}>
<MuiThemeProvider theme={theme}>
<Befunde />
</MuiThemeProvider>
</div>
</div>
);
}
这是我正在尝试让div标签中的玩家返回的班级预告片
班邦德级
render () {
const { classes } = this.props;
return (
<div className={classes.root}>
<div>{this.props.player}</div>
<Grid container spacing={24}>
<Grid item xs={3}>
<Paper className={classes.paper}><Refrence/></Paper>
</Grid>
<Grid item xs>
<Paper className={classes.paper}>
<div>
{this.state.patients.map(patient => (
<div key={patient.id}>
{patient.Vorname}
</div>
))}
</div>
</Paper>
</Grid>
</Grid>
</div>
谢谢!
路线看起来像这样
<Route path="/PlayerFilter/:player" component={({match}) => <FilterB
player={match.params.player}/> }/>
这导致第一个代码块,现在我想将该值传递给Befunde。