Skip to content

Commit

Permalink
add params example
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Dec 10, 2023
1 parent 1ab4370 commit 4f3d13c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example/pages/users/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
export default function User() {
return <div>user</div>;
export default function User(props: any) {
return (
<div>
user {JSON.stringify(props)}
<div onClick={() => history.back()}>back</div>
</div>
);
}

export function getServerSideProps(props: any) {
Expand Down

0 comments on commit 4f3d13c

Please sign in to comment.