Black Lives Matter. Please consider donating to Black Girls Code today.

Why does data sharing via hidden div require network transports?

Isn’t hidden div sharing a front-end operation (i.e. the benefit of using ReactJs)? Especially it’s a user-specific approach. Saving data on the server (flask-caching) should be the one that requires network transports, i.e. communication between client and server.

Hi, I think the shared div is in the front-end (client) but when you execute a callback using this div then it’s executed by the server.

Got it. Do you know the benefit of that?

Your frontend does not run Python. You can run callbacks directly on the client side via Clientside callbacks (an example here) but you have to write them in JavaScript.

1 Like

makes sense, thanks :grinning::grinning: