我在我的 React 應(yīng)用程序中使用 Paystack 組件,該組件需要傳遞一種包含以下一些必需值的對象,它是持有 paystackButton 組件的母組件。PSComponent 組件內(nèi)部。 import React from "react"import {PaystackButton} from "react-paystack"import "./P_Scomponent.css"export default function PScomponent (props){ const { componentProps } = props; //console.log(componentProps) return ( <div className="P_Scomponent"> <PaystackButton className="paystack-button" {...componentProps} /> </div> )}// 但瀏覽器仍然給我以下錯誤,我不知道錯誤來自哪里。index.es.js:6 Uncaught TypeError: Object(...) is not a function
未捕獲的類型錯誤:對象(...)不是函數(shù)
蝴蝶不菲
2023-12-14 14:40:19