Re:JSX over the Wire
by alejalapeno on Tuesday April 15, 2025 @01:14PM
(#43695744)
I've represented JSX/the component hierarchy as JSON for CMS composition of React components. If you think of props as CMS inputs and children as nesting components then all the CMS/backend has to do is return the JSON representation and the frontend only needs to loop over it with React.createElement().
[ Parent
| on HN ]
There are no comments on this comment yet.