I think HOC and Error Boundary pattern are not relevant anymore. We used to use them in pre hooks era but hooks have simplified so much that it's the default choice for most of the use cases.
Compound component can also be refactored using Hooks to provide much more consumable APIs.