I spend way too much time in the insanity that is Gutenberg and I absolutely hate it.
They are basically build a weird word processor where everything is constantly broken and in flux.
If you want to do something as basic as update the DOM structure of a block you have to manually update every page that uses it since they serialize it rendered. It’s technically possible to render your blocks in PHP but then you still have to implement it in React as well for it to work fully in the editor.