Hacker News new | ask | show | jobs
by root_axis 2686 days ago
> What if your React components ran on the server-side?

Huh? React components can run on the server side, that is one of the primary benefits of React compared to its predecessors.

1 comments

Perhaps I could've explained myself better. I meant that all the business logic of the components (i.e. event handlers, lifecycle hooks, setState() calls, etc.) run on the server, unlike just the initial server-side rendering that React provides. The server maintains the state of all components, and when an event occurs, the client notifies the server to run the appropriate event handler.
Ah! I see what you mean. It reminds me of https://github.com/airbnb/hypernova