One component, two layouts: the dual view pattern in React
My portfolio has two completely different layouts. A grid of cards that open into modals. A full-screen vertical carousel with snap scrolling. They look nothing alike and behave nothing alike.
They share one component and one data file.
That pattern ...
sammii.hashnode.dev4 min read