Replies: 3 comments 3 replies
-
These 2 don't use SSR (I didn't check the other examples):
I guess it would be too much work to keep a JS and a TS version of each example. These 2 examples aren't using a lot of TS syntax. Basically, you just need to ignore |
Beta Was this translation helpful? Give feedback.
-
I know how to convert it into js, but its not as trivial as simply removing the types. AIs aren't familiar with router 7 and not used to it either, they get confused, it was final released after models were made, first example you've given is not using framework mode: https://github.com/remix-run/react-router/blob/eb19c3fae9e72aee3cfafb78bc87cae64c3b725b/examples/basic/src/main.tsx second example, afaik is using data mode: https://github.com/remix-run/react-router/blob/eb19c3fae9e72aee3cfafb78bc87cae64c3b725b/examples/basic-data-router/src/app.tsx https://reactrouter.com/start/modes#framework however but below that you can see hard usage of typescript now i wonder whether i need router or not, this is insane, 10000 random components which might cause unintended re-rendering |
Beta Was this translation helpful? Give feedback.
-
We do have a JavaScript template We can definitely add a SPA mode template, but you can also just turn |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
im looking through examples, neither a single example of pure SPA (no ssr) nor any examples written in plain javascript, do you realistically expect everyone rewrite their projects in TSX format looking at examples?
Beta Was this translation helpful? Give feedback.
All reactions