Software Architecture, Design Principles.
const Card = forwardRef<HTMLDivElement, CardProps>(function CardWithRef(props, ref) { return ( <div ref={ref} className={classNames(styles.card, props.className)} {...props}> {props.children} </div> ); }); The logic in the component is pretty straightforward. It wraps react components; we pass to