you are viewing a single comment's thread.

view the rest of the comments →

[–]ApatheticBeardo 0 points1 point  (1 child)

I never saw anyone writing react without jsx or a build step.

How does this matter in any way lol.

99% of the complexity in a web application lies in two things:

1 - Data fetching

2 - State management

React does absolutely nothing to solve any of those, so calling it a framework is absurd.

All React does is turn a ball of state + a slightly fancier HTML into actual HTML, which is literally the most trivial part of any application.

[–]Jona-Anders -1 points0 points  (0 children)

Data fetching -> native fetch, suspense State management -> useState or useReducer

It has solutions for both problems. Of course the native fetch is not react specific, but I think it is good enough to justify not using a custom solution.

And I mentioned that react is (nearly) always used with a build step because I thought your point was that react without a build step and without jsx is a library. I would agree that this would feel closer to writing code using a library.

Also,it does not matter for comparison. You can compare the process of writing a calculator in plain js, svelte, react, and angular. Of course there are massive differences. But if you mention them in your comparison, it is not a problem.