ViewComponent is a Rails library for building reusable front-end components.
I prefer to colocate my component-specific CSS within the component's directory.
For example, table is stored like this:
app/
ViewComponent is a Rails library for building reusable front-end components.
I prefer to colocate my component-specific CSS within the component's directory.
For example, table is stored like this:
app/
ViewComponent is a Rails library for building reusable front-end components.
I prefer organizing a component's files like this:
app/
├─ components/
├─ table/