3 ms·
What’s to stop you using single file components in React? The only way I know of to make them is to use styled components. RedwoodJS seems to doing something l
by onion2k 6y ago
What’s to stop you using single file components in React?
The only way I know of to make them is to use styled components. RedwoodJS seems to doing something like a template literal for styling but that's still not really the same. In my opinion Vue's <style scoped> approach is much more elegant.
constantly scrolling up and down the file between the methods and the template/styling got pretty annoying quickly
Buy a bigger monitor. :)