4 ms·
I love React. In fact I recently gave plain vanilla JavaScript a go and it was so painful that I was glad to get back to React's way of organising a large appl
by andrewstuart 7y ago
I love React. In fact I recently gave plain vanilla JavaScript a go and it was so painful that I was glad to get back to React's way of organising a large application.
I don't use Redux or server side rendering - they're not needed.
The only thing that I think it should do differently is leave styles to be handled natively.
- Vinnl 7y agoThat's perfectly possible in React; I've done that to great satisfaction in a number of projects :)
- ncallaway 7y agoYou absolutely can, and I almost always do, styles things with native css (well, I use sass compiled to css) to style your react application (or widget!). To my knowledge, React itself has no opinion on styling. It's more the ecosystem around React that's gone css-in-js. But, yes, if you want to do your styling natively that's really not a problem.
- gitgud 7y agoWell, for me it was the opposite. Trying vanilla js was empowering! There was no; tool chain, bundling, virtual DOM, render function, countless layers of library abstraction, sourcemaps, node_modules... etc. Just a simple index.html file Some projects don't require a state of the art virtual-DOM-diffing-machine, just to display a list of ToDo items...