4 ms·
Ah, that does make sense. I think this happens in the React world sometimes, where a single state holds the source of truth for everything, and we end up passin
by joeframbach 9y ago
Ah, that does make sense. I think this happens in the React world sometimes, where a single state holds the source of truth for everything, and we end up passing parts of it around to other methods to make decisions.
const data = getDataFromState(state);
const transformer = getTransformersForState(state);
const sanitizedData = transformer(data);