Uncaught (in promise) TypeError: func.apply is not a function at HTMLUnknownElement.callCallback

时间:2021-04-02 04:48:34

标签: reactjs react-router react-router-dom

当我的组件函数被调用时,我试图重定向到另一个页面。但它给了我一个错误。 这是我的代码

        <SuggestedSolution
            budgetData={budgetData}
            onClickgetSolution={(val) => {
              console.log('CLICK ', val);
              return history.push('/abc');
            }} />

这里我的控制台日志显示正确,但是当我尝试重定向时,它给了我这个错误。

enter image description here

0 个答案:

没有答案