Overall, this is a perfectly normal and reasonable pattern for a component factory, especially in a social media client where you need to render different types of content with different components.
Overall, this is a perfectly normal and reasonable pattern for a component factory, especially in a social media client where you need to render different types of content with different components.
The only slightly unusual aspects are:
1. Using Preact's JSX runtime instead of React's (but this is fine)
The only slightly unusual aspects are:
1. Using Preact's JSX runtime instead of React's (but this is fine)