You could replace the import of compose with a tiny implementation of it that looks like this (and could be shortened to one line if you really want to):
const identity = (x) => x;
const compose2 = (f, g) => (x) => f(g(x));
const compose = (...funcs) => funcs.reduce(compose2, identity);
const compose = (...fns) => fns.reduce((f, g) => (...args) => (f(g(...args)));
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.