For an introduction to Oore, visit the quick start doc.
If you've had to maintain larger React function components, you may relate to the feeling of it feeling cluttered, with logic that can be difficult to follow.
Interestingly you can solve some of this with custom hooks. Mostly those that have to do with clutter and not logic. But determining what to extract into a hook may not be straightforward, and you may find it infeasible to get a whole team onboard with doing this consistently because of the added cognitive load it introduces to the process of creating or updating components.
clean-react
provides a way to address these issues with a set of simple, layered abstractions that help you write cleaner function components without any cognitive overhead. With clean-react
, your function components will be declarative, more structured, less error-prone, less prone to performance issues, and overall easier to reason about and maintain.
It is particularly useful for larger components with lots of state variables and multiple closure functions that need to access those state variables.