# element.mount()

> Shows the element inside a container of your page.

Source: https://docs.tryyoursize.com/reference/web/element-mount/

*Method* · `@tryyoursize/sdk`

Shows the element inside a container of your page. A visitor in the A/B holdout gets nothing at all.

```ts
mount(target: HTMLElement | string): void;
```

## Parameters

- **`target`** (`HTMLElement | string`, required): A CSS selector or an element. Put it where the shopper chooses a size.

## Errors

`TryYourSizeError` with code `mount_not_found`, `already_mounted` or `element_destroyed`.

## Example

**JavaScript**

```js
const guide = elements.create("sizeGuide", { product: "SKU-123" });
guide.mount("#size-guide");          // or guide.mount(document.querySelector(".size-row"))
```

**React**

```tsx
// React components mount for you on commit:
<SizeGuide product="SKU-123" />
```
