Convert main-app to use defcomponent.