|
|
|
|
|
by Existenceblinks
1370 days ago
|
|
Some sort of open AST. Honestly "HTML" is pretty close except string typed attribute. `data-`|dataset is also pretty close. > Some sort of open AST well React is kind of that but it's not serializable. The "React Server Components" is trying. --- We just need HTML but in form of AST so that it is serializable and programmable. |
|
Sure, you can encode whatever you want inside of data attributes, but that's just ignoring the problem. You still have to decide on a language to express all that within your data attributes.
React server components also does not is not trying to serialize this. Quite the opposite. We have an in-depth write up here: https://www.plasmic.app/blog/how-react-server-components-wor...
(Sise note: Plasmic's AST is in the open and has an API.)