라이프사이클이란? 사람의 생애주기같이, 컴포넌트에도 라이프사이클이 있다. mount, update, unmount 순서로 흘러간다.Mount : 컴포넌트가 처음으로 렌더링 되었을 때Update : 컴포넌트가 리렌더링 되었을 때UnMount : 컴포넌트가 화면에서 사라질 때useEffect 사용하기import "./App.css";import Viewer from "./components/Viewer";import Controller from "./components/Controller";import { useState, useEffect } from "react";function App() { const [count, setCount] = useState(0); const [input, setInpu..