def METHOD_NAME():
    text, set_text = reactpy.hooks.use_state(print_buffer.getvalue())
    print_buffer.set_callback(set_text)
    return (
        reactpy.html.pre({"class_name": "printout"}, text)
        if text
        else reactpy.html.div()
    )