I downgrades react and react-dom versions and reinstalled the latest version for both and now I get this error
And this is the reactBatchedUpdates.js file
>Solution :
The error message you are seeing indicates that there is an issue with the React component StrictMode being used in your code. The error suggests that the findDOMNode function is deprecated and should not be used within a *StrictMode* component.
To resolve this issue, you have a few options:
–Remove the usage of findDOMNode: If you are using findDOMNode in your code, try to refactor your code to avoid using it. Instead, use the React ref system to access DOM elements directly.
–Temporarily disable StrictMode: If you are not actively developing or debugging your application, you can temporarily remove or comment out the <StrictMode> component from your code. This will disable the strict mode checks and allow your application to run without the findDOMNode warning.
–However, it’s important to note that StrictMode is a helpful tool for catching potential issues in your code, so it’s recommended to address the warning and re-enable StrictMode once the issue is resolved.
–Check for React and React DOM compatibility: Make sure that the versions of React and React DOM you are using are compatible with each other. In some cases, using incompatible versions can lead to errors and warnings. Ensure that you are using compatible versions by referring to the documentation or release notes of React and React DOM.
Additionally, it’s worth checking if any other third-party libraries or components you are using in your application are compatible with the React version you are using. Incompatibilities between different libraries can also cause issues.
By addressing these potential issues and following the suggested solutions, you should be able to resolve the error you are experiencing.

