I am writing code to plug in an existing React component into another component.
The way it's been originally done in code is using a fragmentContainer. I understand a fragmentContainer is a Higher Order Component that acts as a wrapper, and returns another React component. However, I am trying to understand whether I really need to use a fragmentContainer to plug in my existing component, or I can create another wrapper component instead.
Is there a sure way of telling where a fragmentContainer should be used vs React Component within a React Component?
I have looked at the official docs(https://relay.dev/docs/en/fragment-container), and other resources, but it seems like either way can be used? Are there special cases where fragment containers should be used?