--- includeMockServer: true title: "Click to Load" description: Load more items when you click a button icon: "icon-[mdi--cursor-pointer]" ---
## Basic usage On the client, put a button at the end of your list. ```html ``` When clicked, it extends the list (without any client-side state). - [`hx-get`](/reference/attributes/hx-get) requests `/comments?page=2`. - [`hx-swap`](/reference/attributes/hx-swap)=[`"outerHTML"`](/reference/attributes/hx-swap#outerhtml) sets the strategy to replace the target. - [`hx-target`](/reference/attributes/hx-target)=[`"this"`](/reference/attributes/hx-target#this) sets the target to itself. On the server, respond with the next items plus a button pointing to `?page=3`: ```html
...
...
...
``` Because [`outerHTML`](/reference/attributes/hx-swap#outerhtml) replaces the old button, the new one takes its place.