Skip to content

Commit 0008353

Browse files
authored
Merge pull request #13 from jvmusin/patch-1
Use `params` instead of non-existent `query` for `href` in README
2 parents 4a216a1 + 038f254 commit 0008353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
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)