It looks like a <main> element is allowed to have div ancestors: https://html.spec.whatwg.org/multipage/grouping-content.html...
Anyway, if the spec matters more than the toolchain it should not be anywhere but directly under the body element.
Also, React doesn't require the wrappers.