컴포넌트분리1 [React] 컴포넌트를 언제 분리해야 할까? function App() { const [selected, setSelected] = useState(); function handleSelect(selectedButton) { ... } let tabContent = Please select a topic.; if (selected) { tabContent = ( ... ); } return ( Core Concepts {CORE_CONCEPTS.map((item) => ( ))} Examples .. 2024. 7. 10. 이전 1 다음 반응형