w3c에 의해 제정된 RIA(Rich Internet Applications)의 웹 접근성에 대한 표준 기술 규격을 의미한다.
<input type="image" src="btn-submit.png" role="button">
<div role="application">
date picker 영역
</div>
<input type="image" src="btn-submit.png" role="button" aria-pressed="false">
[aira-pressed=true] {
background-color : #000;
}
<table>
<tr>
<div className="Table">
<td>Hello</td>
<td>World</td>
</div>
</tr>
</table>
function Table(){
return (
<react.Fragment>
<td>Hello</td>
<td>World</td>
</react.Fragment>
)
}
3.map을 사용해서 컴포넌트를 여러 개 만들 때,key attribute 를 fragment에 넣어줄 수 있다.
function Glossary(props){
return(
<dl>
{props.items.map(item => (
<React.Fragment key={item.id}>
<dt>{item.term}</dt>
<dt>{item.description}</dt>
</React.Fragment>
))}
</dl>
);
}