As stated here https://github.com/reactjs/reactjs.org/blob/main/content/docs/strict-mode.md?plain=1#L181 useInsertionEffect is included with enableStrictEffects flags in react. but it is not working. and react code also doesn't seem to have this check for useInsertionEffect. please suggest if this is the bug in docs or react code?
demo url - https://codesandbox.io/s/react-18-strict-mode-effects-forked-72d6wp?file=/src/App.js
As stated here https://github.com/reactjs/reactjs.org/blob/main/content/docs/strict-mode.md?plain=1#L181 useInsertionEffect is included with enableStrictEffects flags in react. but it is not working. and react code also doesn't seem to have this check for useInsertionEffect. please suggest if this is the bug in docs or react code?
demo url - https://codesandbox.io/s/react-18-strict-mode-effects-forked-72d6wp?file=/src/App.js