JSFiddle - React, Tailwind, and code Playground

by learningforever

HTML

<h2>window.print() 메소드</h2>

<p>아래의 버튼을 클릭하여 현재 페이지를 인쇄하세요.</p>

<button onclick="window.print()">이 페이지 인쇄하기</button>