I really like the pure function approach for many reasons, however my main concert is if it has a considerable performance penalty specially in case of heavy arguments.
For example, instead of this:
// no pure function
import bigState from './somewhere' // imagine a whole state with lots of values.
const impure = () => {
// do something with bigState
}
// pure function
const pure = (bigState) => {
// do something with bigState
}
Would an app doing considerable work with this kind of functions and arguments see a penalty?