DEV Community

Discussion on: React is awesome but have you tried fresh?

Collapse
 
stealthmusic profile image
Jan Wedel

I think it’s about having logic, structure and styling in one file. I have never used react, but it always looked very weird to me. I agree with that in large applications, I would never ever want this. When I am changing code, I’ll do it in a ts file, when I change structure, I’ll do it in an html file and when I style something, I’ll do it in a css file. Very simple. That’s how browsers work and it’s a very sensible separation of concerns.

Thread Thread
 
asheeshh profile image
ashish

makes somewhat sense, though it's hard to structure your project when it's really big as most of the frameworks don't work the way you want them to and seeing how css-in-js is being used by more people, but I don't hate the way of structuring projects using folders like pages, components, styles too. It's not exactly what you want but is somewhat efficient and readable.

Thread Thread
 
imonem profile image
imonem

I think having everything in one file is for the purpose of the tutorial and not intended to be for scaling production. I use sass for larger projects. However if it's a quick prototype then it's bootstrap or two for the sake of speed

Thread Thread
 
asheeshh profile image
ashish

absolutely, I just wanted to show the basics of the framework, fresh is still very new to be used in production but I have high hopes from it.