diff --git a/src/link.tsx b/src/link.tsx index 2aab1fe..97f70ac 100644 --- a/src/link.tsx +++ b/src/link.tsx @@ -19,9 +19,7 @@ type Props = { } & Exclude, 'href'>; export function Link(props: Props) { - props = mergeProps(props, { - activeClass: 'active', - }); + props = mergeProps({activeClass: 'active'}, props); const toIsString = createMemo(() => typeof props.to === 'string');