React-Bootstrap v2 Modal container default shifts to document.body creating SSR hydration boundary
Compatibility boundary with React 18 concurrent rendering React-Bootstrap v2.0.0 changed the default container prop for Modal and Dropdown components to document.body , enabling portal rendering without jQuery. This default creates a hydration mismatch in server-rendered frameworks like Next.js when the portal target exists only on the client. The library cu