problem description
I wrote getData.js to request data. When I use it in export default , how to write match information in the argument?
related codes
/ / Please paste the code text below (do not replace the code with pictures)
class PlistInfo extends Component {
render(){
let plistId = this.props.match.params.id;
return <React.Fragment>aaa</React.Fragment>;
}
}
export default getData("getPlistInfo", {plistId: "563507"})(PlistInfo);
what result do you expect? What is the error message actually seen?
now the plistId in render can be fetched. How can it be used in the getData parameter?