Skip to content

Commit 038f254

Browse files
authored
Use params instead of non-existent query for href in README
1 parent 4a216a1 commit 038f254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import { href } from './router';
8585

8686
const ProjectCard = (props: { id: string }) => {
8787
return (
88-
<Link to={href({ path: '/projects/:projectId', query: { projectId: props.id } })}>
88+
<Link to={href({ path: '/projects/:projectId', params: { projectId: props.id } })}>
8989
<p>Project {projectId}</p>
9090
</Link>
9191
);

0 commit comments

Comments
 (0)