Home › How to fix › Versions
VER011Needs youLegacy ReactDom.render on React 18
Why it matters
ReactDom.render runs React 18 in React 17 mode - you miss concurrent features and get console warnings.
How to fix
- Create one root per web part: this._root = createRoot(this.domElement); this._root.render(element);
- In onDispose: this._root?.unmount();
Microsoft articles
- Upgrade to React 18 (SPFx 1.24)learn.microsoft.com
In VS Code: right-click the finding → Explain & How to Fix, or use ▶ Fix step by step in the report.