Rethinking the 3 Cs: Containers, Columns, and Components #182
seancdavis
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@dholloran-ample ran into an issue in working this project's theory into another project. The issue was twofold:
Dan's solution was to consider that containers and columns and components are all just ... blocks. Another way to say this is that everything is a component. And each component controls what may or may not be adding as children on that component, just as you would with React components, in general.
The proposal here is:
src/components
.<Column />
and<Grid />
. The grid would essentially be a repeated set of columns, but would ship with additional controls one may require in a grid.<Component />
comp is a component. It should probably get a new name, like<CompMapper />
or something that doesn't match the name of the parent directory (i.e. avoidsrc/components/component/...
). It handles mapping props from comps like the container, column, grid, etc. and rendering components from those props.Beta Was this translation helpful? Give feedback.
All reactions