renamed to `renderFragment`