Use JSX or similar for board definition #1263
jamesjacko
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
@jamesjacko and I have already discussed this a bit, but I'd love your eyes on it too @paullewis |
Beta Was this translation helpful? Give feedback.
0 replies
-
JXON is another option but it seems to be somewhat abandoned and JSX is a de facto industry standard |
Beta Was this translation helpful? Give feedback.
1 reply
-
started a bit of PoC https://github.com/ExaDev/breadboard/blob/xml-board/packages/xml/index.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Coming from a React-heavy frontend world I had a thought when reading the getting started docs. Could we use something like JSX to define boards alongside the current JSON or JS object definitions? The benefit of this is that it gives more options to the developer and can help simplify board creation for those coming from an XML-like world.
would become something like
We could have a series of library "elements" and allow users to create their own. Initial thoughts are to investigate Babel plugins as most JSX transpiles to
'React.createElement()'fixed library function code via babel plugins. There is the babel-plugin-jsx-pragmatic that could have legs but we could also look into creating our own babel plugin.I'm going to put together a getting-started POC to see how "out of the box" babel-plugin-jsx-pragmatic might be. It would also be interesting to see if this can also work alongside standard JSX.
Beta Was this translation helpful? Give feedback.
All reactions