You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's really neat that this library allows React components to be rendered from JSON.
But what about going the other way? i.e. starting with JSX and converting that to JSONX syntax?
I have this idea where a user writes some JSX code (perhaps in web-based GUI), and then I'd like to serialize it to JSONX, so it can be stored in a database. Then I'd be able to send it via an API to some other app, where it can be translated back to JSX and rendered.
is that possible with this or any other library?
The text was updated successfully, but these errors were encountered:
I think it is possible, it would probably involve taking a look at babel/typescript JSX parsers that convert JSX to React.CreateElement etc - updating the transpiler to JSONX
It's really neat that this library allows React components to be rendered from JSON.
But what about going the other way? i.e. starting with JSX and converting that to JSONX syntax?
I have this idea where a user writes some JSX code (perhaps in web-based GUI), and then I'd like to serialize it to JSONX, so it can be stored in a database. Then I'd be able to send it via an API to some other app, where it can be translated back to JSX and rendered.
is that possible with this or any other library?
The text was updated successfully, but these errors were encountered: