| ▲ | geon 8 hours ago | |||||||
Is there a library that can work with JSX? I'd like to render JSX on the server and only send the diff to the client. I started writing some experimental code, but it was a lot of work. https://github.com/geon/react-node-diff/blob/main/src/diff-r... | ||||||||
| ▲ | igor47 an hour ago | parent | next [-] | |||||||
Wait but, don't you render the jsx to html? So you you can still perform the diff on the rendered html? Also, how do you know what you rendered last time? When you do the diff between what's in the browser and what the server just gave you, you have both sides. If you do it server side, you could... Render twice, once before and once after the state change? Or keep a server side cache? | ||||||||
| ||||||||
| ▲ | cetinsert 7 hours ago | parent | prev [-] | |||||||
See https://github.com/tbranyen/diffhtml?tab=readme-ov-file#feat... | ||||||||