by codebeaker · 5y ago · 0 comments
Why not make a DOM Editor then with virtual components? The JSON<>React serialization doesn't seem to offer much value, unless it's purely mechanical.
I don't mean to detract from the praise your product is getting here, but I'm really curious about those motivations if you have time to answer my query in amongst the other more excited threads, I'd be glad to understand what the trade-off buys you?
The JSON format allows us to only specify the main type/value of each block, while giving full flexibility on how to render them. I think there are several approaches to rich text editing out there, we picked this one because it seemed to be the most flexible and portable, as we need to invent our own types of standard "blocks", like columns, containers, etc.
Not sure if this answers your question though, happy to go deeper if you have more thoughts on it.
I mean, you don't see any value in being able to declaratively state an entire app? ...
Only on the web there exist people who hack around for so long they actually believe the hack is the right way.