📚 ****Reference


📜 Chapter


검색 폼 구현


Input 요소 사용하기

const element = (
  // (1)
  <>
    <header>
      <h2 className="container">검색</h2>
    </header>
    <div className="container">
      {/* (2) */}
      <form>
        <input type="text" placeholder="검색어를 입력하세요" autoFocus />
      </form>
    </div>
  </>
)

// (3)
ReactDOM.render(element, document.querySelector("#app"))