code: public static AlertContainer render(BaseComponent parent, BaseComponent child) {
          AlertContainer container = new AlertContainer(child);
          parent.addChild(container, 0);
          return container;
      }
docs: Renders an alert in its container.
  
  @param parent Parent component that will host the container.
  @param child Child component that is the root component of the alert.
  @return The created container.