const DialogTitle = withStyles(styles)((props) => { const { children, classes, onClose, routeHappyData, ...other } = props; console.log(routeHappyData); return ( <muidialogtitle disabletypography="" classname="{classes.root}" {...other}=""> <typography variant="h6">{children} {onClose ? ( <iconbutton aria-label="close" classname="{classes.closeButton}" onclick="{onClose}"> <closeicon> ) : null} ); }); `` ```The prop I want to pass is "routeHappyData" which is showing undefined when console logged. In the Parent class component i am passing the prop this way given below``` render() { let { routeHappyData } = { ...this.props }; return ( <div>{noOfStops}</div> {<covidhealthsafety routehappydata="{this.props.routeHappyData}/">} ) What I have tried: I tried to console log the props in useEffect() as well but still no data is showing
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)