Sorry, but it really reads differently to me. It says that if you don’t want to use a framework, you can build one yourself. But then, if you actually proceed, the docs keep reiterating that you really shouldn’t be doing that unless you’re an expert. There’s nothing in between, it seems.
Svelte has its preferences, obviously, but doesn’t force you into a complicated framework right away. It shows you alternatives in a fair and more balanced comparison and lets you build knowledge gradually.
The blog post literally says "If your app has unusual constraints, or you prefer to solve these problems by building your own framework, or you just want to learn how react works from scratch, you can roll your own custom setup with React using Vite or Parcel."
If you go to the "Building a React Framework" page, as implied by the fragment, the very first thing you see is: "Building a framework is complex and requires extensive expertise across various domains."
It doesn't read the same as Svelte.
And a simple SPA doesn't count as "an unusual constraint".
You can build a SPA with SvelteKit. I think there is one issue that makes this harder than it needs to be which we'll fix in SvelteKit 3. But SvelteKit should be the easiest way for most people to build a SPA (if not now then in v3) because it comes with a router and batteries included.
I hope so, i'll certainly try again. I gave up with kit and used svelte as i seemed to be swimming against the tide with kit. Turns out adapter static isn't static in dev mode which totally threw me. Though, as previously discussed "SPA" is a moveable target.
Thanks for the feedback. It seems SPA mode has been a pain point for some users, so I'd like to learn more for v3. Is there an example of something being different in dev vs prod that caused issues for you? And sorry if I'm forgetting an earlier discussion, but what do you mean by moveable target?
Sure, it’s not easy, but you don’t always need a full-fledged framework to create web apps, especially if you’re just learning. The docs discourage you from trying the simplest possible way to start writing React. A way that is still viable today.
I don't think it's nitpicking.
I don't think they are saying a SPA is an unusual constraint. They are recommending react-router to build SPAs. It seems they think of react-router as a framework since it allows you to opt-in to framework features.
Comments
Nitpicking AF.
It doesn't read the same as Svelte.
And a simple SPA doesn't count as "an unusual constraint".
I don't think it's nitpicking.
I’d use Triplex for VS Code 😁.