Is there (or could there be) a class-based version of this that is called OUTSIDE of render()? Such as how Alert works?