47

I realise that most people are asking about when asking about JSX but JSX itself is not a strictly a reactJS topic. In fact Vue.js also allows using JSX and there is a babel jsx plugin for compiling Vue JSX. The ambiguity is apparent in the question Vue v-on:click.native in JSX?

So question is should jsx stop being a synonym to reactjs?

9
  • 23
    I think the answer is a clear yes.
    – user247702
    Commented Jul 6, 2018 at 8:06
  • 3
    There used to be an burninate request: meta.stackoverflow.com/questions/349578/should-we-burninate-jsx and slightly related: meta.stackoverflow.com/questions/315831/…
    – rene
    Commented Jul 6, 2018 at 8:36
  • 6
    There is a react-jsx tag that's also a synonym of reactjs so clearly jsx doesn't need to be.
    – ivarni
    Commented Jul 6, 2018 at 9:11
  • @rene I have no real strong feelings about keeping or deleting the tag. In an ideal world we'd keep it and people would only use it if they had JSX (but not react specific) questions. However I do understand this is not an ideal world so perhaps there is some merit in completely removing it and using a different tag for pure jsx questions or having a tag for each supported library (like in this case creating vue-jsx)
    – apokryfos
    Commented Jul 6, 2018 at 10:17
  • 1
    I have no opinion on it, nor feelings. I just happened to recall I saw that tag mentioned in the burnination worksheet that was created a couple of months ago which is why I linked to those posts.
    – rene
    Commented Jul 6, 2018 at 10:42
  • 2
    Now I know why @apokryfos asked me if I want to use both react and vue! I didn't add reactjs tag...
    – Everettss
    Commented Jul 6, 2018 at 10:46
  • 5
    Absolutely. JSX is used by multiple frameworks, not just React. Commented Jul 6, 2018 at 11:31
  • 3
    JSX is an XML syntax that is an extension of JavaScript. It is completely separate from React.
    – Tyler
    Commented Jul 6, 2018 at 12:07
  • 5
    I am surprised to know that those tags are synonyms. Not only is jsx not mandatory in react, it can also be used in other front-end frameworks.
    – E_net4
    Commented Jul 6, 2018 at 12:17

1 Answer 1

9

now.

Due to popular demand, and a clear majority of 43 votes for and 1 vote against, I deleted the synonym. and are now separate. It is now the time to look at the other two pressing matters:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .