varient (1) 썸네일형 리스트형 React 컴포넌트 DRY하게 작성하기 : varient 원문 : Variants – a quick tip for better React components | Swizec Teller Variants – a quick tip for better React components | Swizec Teller Say you're building a component that shows up in lots of places, like a header. Look at designs and sure enough, same header on every page. Logo, few buttons, username. You create a reusable component. DRY all the way. const Header = () => { return ( )} Fa sw.. 이전 1 다음