Web이 더욱 인터랙티브해지면서, 로직이 내용을 결정하는 경우가 많아짐. -> JS가 HTML을 담당하게 됨.
React에서 렌더링 로직과 마크업이 같은 위치 (= 컴포넌트)에 함께 있게 됨.

React Component : React가 브라우저에 마크업을 렌더링할 수 있는 JS 함수.
<div> 또는 <> 와 </>(Fragment) <img> -> <img/>classNameHTML을 JSX로 변환하기
export default function Bio() {
return (
<div class="intro">
<h1>Welcome to my website!</h1>
</div>
<p class="summary">
You can find my thoughts here.
<br><br>
<b>And <i>pictures</b></i> of scientists!
</p>
);
}
올바르게 변환 이후
export default function Bio() {
return (
<div>
<div className="intro">
<h1>Welcome to my website!</h1>
</div>
<p className="summary">
You can find my thoughts here.
<br /><br />
<b>And <i>pictures</i></b> of scientists!
</p>
</div>
);
}