Latest Stories MLB wrap: Diamondbacks' playoff hopes fade on rough road trip Sporting News. Hot shots Sports in pictures. Wainwright blanks Dodgers Stadium 0: Verlander paces Astros Stadium 1: Austin does it all for Twins Stadium 0: Harper jacks 34th home run Stadium 0: Padres walk off on Mejia's grand slam Stadium 0: Does Cal Ripken Jr.
David Wright will return to Mets lineup before season's end Sports Illustrated 0: Target container is not a DOM element. The node you're attempting to unmount was rendered by another copy of React. The node you're attempting to unmount was rendered by React and is not a top-level container. Target container is not valid. This usually means you rendered a different component type or props on the client from the one on the server, or your render methods are impure.
React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side: This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting.
React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server: We can't do this without using server rendering due to cross-browser quirks.