RFC: should we get more functional?
We suggest writing React components as pure functions using recompose
. Recompose provides utilities that allow individual bits of logic (including lifecycle methods and branching) to be separated into their own functions, which makes the behaviour of components easier to understand and simplifies testing. A summary of what recompose offers can be found here.
In any case, components that do not make use of lifecycle hooks or state can be rewritten as pure functions (eg. the Manage component).
We would also suggest moving to lodash/fp
or ramda
rather than lodash
.