# VariantSelector
The `VariantSelector` component helps you build a form for selecting available variants of a product. It is important for variant selection state to be maintained in the URL, so that the user can navigate to a product and return back to the same variant selection. It is also important that the variant selection state is shareable via URL. The `VariantSelector` component provides a render prop that renders for each product option.
```jsx
import {VariantSelector} from '@shopify/hydrogen';
import {Link} from 'react-router';
const ProductForm = ({product}) => {
return (
{({option}) => (
<>