我使用create-react-app命令來創建我的項目,我很奇怪按鈕onClick不會觸發。我看到這個錯誤,我以前 invariant.js:38 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a compo
更新:我的用例主要是在CI上運行測試,但覆蓋默認CRA Jest參數是我一般想知道的。 我使用Jest,配置與Create React App來運行測試。它始終啓動到交互模式: › Press a to run all tests.
› Press o to only run tests related to changed files.
› Press p to filter by a fi