Use renderFragment