What is a key advantage of HOCs over mixins in legacy React code?
A key advantage of HOCs over mixins (which are no longer supported in React) is that HOCs avoid state conflicts and implicit dependencies. Mixins could introduce implicit dependencies and name conflicts between different mixins. HOCs are more explicit about dependencies and have clearer ownership of props and state.