-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2주차] 강의 및 피드백 #2
Comments
피드백 @Dana2808컴포넌트 생성 및 활용은 정말 잘하셨습니다. NameCard 컴포넌트-Profile 컴포넌트끼리 props를 전달하고 받는 방법에 대해 예시를 들겠습니다. //NameCard.jsx
<Profile
img='https://plus.unsplash.com/premium_photo-1680946468196-a53273b001b8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80'
name='KimMinjeong'
describ='Im frontend developer!'
/> //Profile.jsx
import React from 'react';
export default function Profile({img,name,describ}) {
return (
<div style={{textAlign:"center"}}>
<img
src={img}
alt="profile"
style={{
borderRadius: "50%",
width:"300px",
height: "300px",
objectFit: "cover"
}}
/>
<h1>{name}</h1>
<h3>{describ} 🎉</h3>
</div>
);
} 이러한 방식으로 NameCard 컴포넌트에서 Profile 컴포넌트를 불러올 때 img, name, describ에 원하는 값을 전달하게 됩니다. 예시를 참고하셔서 Contact와 Projects도 props를 이용해 값을 전달하는 방식으로 코드를 수정해주세요! |
피드백 @Baebin컴포넌트 생성 및 활용부터, props 전달과정까지 모두 완벽히 잘 수행하셨습니다! 2주차 과제 완료되셨습니다. 수고 많으셨어요! 🎉 |
피드백 @jban10011차 피드백컴포넌트 생성 및 활용부터, props 전달과정까지 잘 수행하셨습니다! const name="Anjunbeum";
const describ="I'm pikachu!"; 만일 의도적인 Profile 컴포넌트 구성이 아니었다면, Profile 컴포넌트 역시 Projects, Contacts 컴포넌트와 동일하게 재구성 해주세요! 😃2차 피드백Profile 컴포넌트에서 prop를 전달하는 과정 잘 구현하셨네요! 2주차 과제 완료되셨습니다. 수고 많으셨어요! 😉 |
피드백 @{JeongJimin}온라인 참여이었음에도 불구하고, 명함 제작 실습까지 잘 오셨습니다! 2주차 실습 완료되셨습니다. 🎉 |
[9월 28일] 온라인 문서 스터디
The text was updated successfully, but these errors were encountered: