Skip to content

Commit 4f3d13c

Browse files
committed
add params example
1 parent 1ab4370 commit 4f3d13c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

example/pages/users/[id].tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
export default function User() {
2-
return <div>user</div>;
1+
export default function User(props: any) {
2+
return (
3+
<div>
4+
user {JSON.stringify(props)}
5+
<div onClick={() => history.back()}>back</div>
6+
</div>
7+
);
38
}
49

510
export function getServerSideProps(props: any) {

0 commit comments

Comments
 (0)