@Lukiticas
Posted
Wow! I'm here just to admire your project, this is incredible. Did svelt make things easier for you? I'm trying to learn react but i'm not that sure if i choosed the right framework.
Again, this is one of the best from the entire site. Bravo!
@AntoineC-dev
Posted
@Lukiticas Hello Lucas. These are some really kind words. I'm glad you liked my solution. I tried to go into details for the best possible result.
I don't think that Svelte made this project easier. In fact, the equivalent in vanilla JS would probably be way less code and complexity in the project Structure.
What SvelteKit (Which is to Svelte what NextJs is to React) gave me, is the possibility to use ServerSide Rendering. Which is the ability to prefetch the html on the server to reduce loading time and improve Seach Engine Optimization. I used it to manage the theme setting with cookies on the server. You can find all the logic in the README.
Svelte is a really awesome framework and i really am enjoying playing with it. But React is also really good. I used React for 1+ year and it's really fun. I liked it at the beginning and event more when i started creating my own custom hooks etc...
I don't think one is better than the other. You can do everything i did here with NextJs or GatsbyJs.
It's just a matter of: choose on and commit to it. Then you'll be able to switch to any JS framework really quick. Also don't skip the basics. Learn vanilla JS (or even better IMO typescript). You'll understand better what is and event, a listener, and all the code happening behind the scene in your framework of choice.
Again, thank you for your kind words it is really appreciated. I wish you a happy coding journey and happy learning.
Peace :)