4 ms·
What are the other ways? XML inside the attribute value or splitting up in a bunch of data attributes?
by rrgok 2y ago
What are the other ways? XML inside the attribute value or splitting up in a bunch of data attributes?
- naasking 2y agoWell it's hard to say because the OP didn't actually specify what state he's storing with JSON. Given we're talking about HTMX, all durable state should be server-side and client-side state should be generated by the server to round-trip back to the server, so it's not really clear why JSON should should be used here. Typically in this context, state is stored server-side, or client-side in input fields or in the URL as parameters (HATEOAS).