If something can be solved with hooks, I would use hooks. They are way easier (at least for me) to work with as they seem to be easier to share with different components and they do not bring a pyramid of doom in the case of render props or the “where this is coming from” thing in HOCs.