profile
viewpoint

Ask questionsDisable react strict mode on third party libraries

I started to use react strict mode in my project.

But I'm using third party libraries (like old react-bootstrap).

Is it possible to disable the strict mode on those libraries specifically, or disable strict mode to all third party libraries?

facebook/react

Answer questions threepointone

If React made these exceptions, then it wouldn’t be “strict” at all :) so no, I don’t think React will skip third party libraries for warnings.

Could you tell me why you’re using strict mode if you cannot commit to the guarantees just yet? I would recommend you not use third party libs that aren’t strict mode compatible. Alternately, don’t use strict mode if your project isn’t ready for it.

useful!

Related questions

Warning: Unknown DOM property for. Did you mean htmlFor? hot 6
TypeError: Object(...) is not a function
Refs - "object is not extensible"
React@16.9 block `javascript:void(0);`
Warning: validateDOMNesting(...): <tr> cannot appear as a child of <table> hot 3
"DevTools v4 is incompatible with this version of React" with React Native & latest version of React hot 3
[ESLint] Feedback for 'exhaustive-deps' lint rule hot 3
React custom hook "Should have a queue. This is likely a bug in React" error message. hot 2
useEffect causes 'callback is not a function' exception hot 2
DevTools: Updating state or props in devtools does not trigger component update. hot 2
Infinite loop in useEffect using blank object or array hot 2
Error on unit test : Cannot read property 'Symbol(Symbol.iterator)' of undefined hot 2
False-positive security precaution warning (`javascript:` URLs) hot 2
Hooks API - hook breaks when exported from module hot 2
Function components do not support contextType. hot 2
source:https://uonfu.com/
Github User Rank List