This example shows how to use the GeoExt.component.Map class in an GeoExt app with the modern toolkit.
GeoExt.component.Map
Have a look at modern-map.js to see how this is done.