Show HN: React-Redux-Sass Starter Kit
github.com
github.com
This solved all my issues and is doing exactly what I want. Seriously, much appreciated!
Why would you use Sass with React when styled-components, and to a lesser extent inline css-in-js exist?
https://medium.com/@gajus/stop-using-css-in-javascript-for-w...
https://css-tricks.com/the-debate-around-do-we-even-need-css...
I used to be quite happy with css-in-js because of its simplicity but found that it doesn't scale very well to large & complex apps.
About a year ago I was introduced to styled-components by a colleague and though initially sceptical (it took me a little while to grok its patterns) I've found it really nice, it solved basically all of the issues I found with scaling styles inside a React app, and I haven't looked back. The only concern I have with it is its not insignificant contribution to bundle size, but that's literally the only thing that would dissuade me from using it on any new project by default.
Since it obviously fits so well with the 'React way', and allows you to colocate styles within components with full access to the power of JS for building complex styles dynamically, I just wonder why you'd go for Sass, which is a great but much more general purpose tool, when it exists?
Sure. While create-react-app is undoubtedly better, this starter kit just let's us create apps using React, Redux and Sass right out of the bat. Though create-react-app can be used to do the same, it doesn't come with Sass pre-installed and to do that, you may have to "eject" the project. More on that here - https://medium.com/@Connorelsea/using-sass-with-create-react...
Neutrino looks great. Comes with an array of packages. I couldn't find Sass again. So that might require additional configuration.
It sure is not better than those two you are referring to, but is different for sure. Because, if all that someone's looking for is React + Redux + Sass to start writing their application without any initial configuration, then this could be their solution.