Suppose we have the following situation: we have a blog with a posts feed. When the page loads, there should already be like 3 <PostCard>
s loaded, created on the server-side; the user will scroll down or press a Load more button and some new post cards should be dynamically added to the page.
I have Hack's XHP component <PostCard>
and we have the ReactJS component <PostCard>
.
So, should I:
- Implement the entire thing on the client-side, in React and have the XHP component's
render()
method onlyconstructReactInstance()
? (I've done something like that at some point, but I noticed that there are some delays on the page load, something like a "lag"). - Implement the component twice, both in server and client sides? (This is a total pain...)
- Something else...?
I hope I made myself clear and someone will be able to help me :smile_cat: