2 ms·
React can be super nice to use for SSR. When the site is small and/or simple (or even medium sized), React is definitely overkill. But if you have a big site
by freedomben 3y ago
React can be super nice to use for SSR. When the site is small and/or simple (or even medium sized), React is definitely overkill. But if you have a big site (like lots of pages, or complex pages) then the component model that React brings can make it a ton easier. The rule of thumb I use is basically if I'm including/importing more than a few template pages, React can make it a lot more manageable.
Now that said, I think a ton more stuff can (and should) use SSG than SSR. This is IMHO the killer feature that Next.js makes easy to do.
- synergy20 3y agoI heard everyone saying 'react is for large complex project', somehow I think react is good for small project too: use a few components and its context api and dom-router to build a small site, the learning curve is actually not much comparing to other frameworks, what am I missing? tried svelte, vue, I don't feel react is more complex, if at all.
- freedomben 3y agoYeah compared to svelte, vue I think React is the way to go. For me the alternative for a small or medium project is a standard template system like Liquid (Jekyll), ERB (Rails) or EEx (Phoenix).