3 ms·
Without taking sides, understanding your application requires a fairly complete understanding of React, JSX, Javascript, the DOM, and how React ties all of thi
by falcolas 11y ago
Without taking sides, understanding your application requires a fairly complete understanding of React, JSX, Javascript, the DOM, and how React ties all of this stuff together. Sure, your code by itself is quite small, but when you add React, it grows by the size of React.
On the other hand, just by knowing Javascript and the DOM, you can understand exactly what is happening in the OP's code.
- undo76 11y agoWell, technically you don't need to know JSX, but it pays off to know it IMHO. Moreover, the DOM API is much more complicated than React API and the latest doesn't depend on the particular browser you are using. But yes, to use a technology, you need to understand it. Regarding the size, you are right, I wouldn't recommend to use React for such a tiny task.
- deleted 11y ago[deleted]
- Chris_Newton 11y agoYou make a fair point. That said, one of the nice things about React is that even a moderately experienced JS programmer can learn the basic mechanics (including how to use JSX) in a few hours. That’s a reasonable investment for a useful tool, and React has a much shorter learning curve than most of the larger JS frameworks.