I want to compose (recompose) a React component with recompose.pure and an other hoc.
In what order should I do this ?
- compose(pure, anOtherHoc)(MyComp);
- compose(anOtherHoc, pure)(MyComp);
What is the criterion for deciding this ?
import { compose, pure } from "recompose";
const MyComp = ({}) => (<div>test</div>);
export default compose(pure, anOtherHoc)(MyComp);