3 ms·
We are doing this as well and I agree that there are a number of nice things about it. I find that the closer to HTML my code is, the more I prefer JSX whereas
by kristiandupont 9y ago
We are doing this as well and I agree that there are a number of nice things about it. I find that the closer to HTML my code is, the more I prefer JSX whereas if I am using mostly components, it starts to feel silly.
In addition to your points, a nice thing about pure JS is that you can optionally add an element with a simple ? operator without having to "break" things with curly brackets. createElement excepts null/undefined as something it will just skip.