3 ms·
> 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
by root_axis 8y 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.
- karthikksv 8y agoPerhaps 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.
- root_axis 8y agoAh! I see what you mean. It reminds me of https://github.com/airbnb/hypernova https://github.com/airbnb/hypernova