3 ms·
I think this is fine: { “type”: “div”, “style”: “...”, “children”: [ ... ] } If you really want to treat attributes specially
by throwaway894345 6y ago
I think this is fine:
{
“type”: “div”,
“style”: “...”,
“children”: [ ... ]
}
If you really want to treat attributes specially you could put them under an “attributes” key:
{
“type”: “div”,
“attributes”: {“style”: “...”},
“children”: [ ... ]
}