[단어장] Attribute, Property, Props

2023. 1. 24. 00:48프로그래밍/도서관

728x90

오늘은 항상 헷갈렸지만 그냥 대충 알아먹을 수 있는 친구들이다.


Attribute

https://www.w3schools.com/html/html_attributes.asp

 

HTML Attributes

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

W3에 의하면 Attribute란
HTML 엘리먼트에 전달하는 추가 정보다.

예를 들면 여기서는 name, id가 attribute다.

<div id="a" name="goldfish" />

Property

https://blog.jeongwoo.in/html-attribute%EC%99%80-property-%EC%9D%98-%EC%B0%A8%EC%9D%B4-d3c172cebc41

 

HTML : attribute와 property 의 차이

원문 : http://jquery-howto.blogspot.kr/2011/06/html-difference-between-attribute-and.html

blog.jeongwoo.in

위 글에서 Attribute와 Property의 차이점을 잘 설명해줬는데,
DOM에서의 표현임을 알 수 있다.


Props (properties)

React에서 사용되는 용어로, 컴포넌트로 전달하는 값을 뜻한다.

const HelloWorld = ({ icon, title }) => {
  return (
    <>{icon}2023년 새해 복 많이 받으세요!{title}</>
  );
}

'프로그래밍 > 도서관' 카테고리의 다른 글

스로틀링 (Throttling)  (0) 2023.07.30
[단어장] Oauth  (0) 2023.02.05
[단어장] Bundler, Transpiler, Loader  (0) 2023.01.15
[단어장] Glossary, Consensus  (0) 2023.01.08
금붕어의 솔리디티 문법 사전 - Solidity syntax  (0) 2022.03.30