Consider adding higher-order components for visibility of e.g. action buttons.
Open
Technical Debt
- Dominant language
- Clojure
- Stars
- 66
- Forks
- 28
- Avg merge
- 7d 4h
- Merged PRs (30d)
- 2
Description
Currently some top level container component does the logic, and passes a `can-xxx?` parameter to a view component. Some of these could be automated / made a pattern. We trust the `text` component, which is not actually a purely functional view component, to be used inside other "purely functional view components". Following the same logic we could have our own framework-y higher-order components that help in implementing our common "is component visible to this role" or "is action enabled here" type of situations.
Contributor guide
Assessment
This issue has not been assessed yet.