r/reactjs • • Jul 28 '19

Show /r/reactjs ScriptUI: Write React without JSX

https://github.com/anater/ScriptUI
3 Upvotes

26 comments sorted by

View all comments

-2

u/Shade-73 Jul 28 '19

If you dont want to use JSX why use react?

2

u/[deleted] Jul 28 '19

JSX != React.

React has so many benefits that have nothing to do with JSX. JSX requires tooling that gets in the way when you’re just trying to build something. You shouldn’t need a terminal to build a web app.

0

u/Shade-73 Jul 28 '19

I never said its the same... But its one of its core features so why build a whole thing just not to use it

1

u/[deleted] Jul 28 '19

Because it isn’t a core feature. It’s an extra tool. The React library doesn’t contain JSX. Not using JSX means not having to install node, npm, or Babel just to start writing your app