Skip to content

Commit

Permalink
style: Product 함수형 컴포넌트 버전
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeseSR committed Aug 20, 2021
1 parent 8b9e1ef commit 355b1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ProductsByFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import ProductInformation from "../components/product/ProductInformation";
import ProductRecommend from "../components/product/ProductRecommend";
import Axios from "axios";
import Data from "../kyungmin.json";
import { useParams } from "react-router-dom";

function ProductsByFunction(props) {
const id = props.match.params.id;
const { id } = useParams();
const [Product, setProduct] = useState([]);

useEffect(() => {
Expand Down

0 comments on commit 355b1d9

Please sign in to comment.