3 ms·
> what about stateful components that change colour or what not, do they still run on the client side Yes :-) Statefulness of a component is not useful for se
by azangru 8y ago
> what about stateful components that change colour or what not, do they still run on the client side
Yes :-)
Statefulness of a component is not useful for server-side rendering anyway, because component state will only change on the client side. But yes, stateful components work both client-side and server-side.
> And what about a todo-list like the one on the react start page, will it "magically" use hidden forms and make http posts to update the server state
I am not sure what you mean. Filling in and submitting a form only makes sense on the client side. It can be pre-populated with data during server-side rendering though. Naturally, http requests for form submission will work on the client.