• This project
    • Loading...
  • Sign in

2021-1-capstone-design1 / MAC_Project1

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • MAC_Project1
  • src
  • pages
  • [id].tsx
  • 이정민's avatar
    코드 정리 · a22b69f6
    a22b69f6
    이정민 authored 2021-05-23 12:30:32 +0900
[id].tsx 283 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { useRouter } from "next/dist/client/router";

const Detail = () => {
  const id = useRouter().query.id;

  return (
    <div>
      <img
        src={`https://9davbjzey4.execute-api.ap-northeast-2.amazonaws.com/?id=${id}`}
      />
    </div>
  );
};

export default Detail;