Some Ideas about JSX support #87
xiaoxinghu
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Great! JSX support for orga is one of the most wanted features, glad you are finally taking a dab at it! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't recommend any imitation of MDX, MDX is not Markdown that supports JSX, but JSX that supports Markdown. Developing orgajs into MDX means that you are turning a markup language into a literate programming language. The following are the main disadvantages of MDX:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Don't know if this is going to reach anyone, but it seems to be a nice feature of github that might save me some time from building a forum. I think I am going to try and post some ideas here.
I am currently working on
webpack
loader for orga, it will enable directjsx
integration, without being tied to specific frameworks like gatsbyjs. Just like MDX for markdown. It's mostly working right now but it's a pretty big change, there's still work left to do. It needs some polish and test. stay tuned.I need input from you org users for a design choice. Currently, I am using the built-in HTML export tags as indicators of embedded jsx code. So in your file it will look like this:
or this for oneliners.
or inline components like this (this syntax is not implemented yet):
Any concerns about this design? Should we create a new type of export for
jsx
only? E.g.#+BEGIN_EXPORT jsx
. I can't think of any drawbacks for using the built-inhtml
type directly. Any input is appreciated.Beta Was this translation helpful? Give feedback.
All reactions