3 ms·
If its a static site why do you need react?
by thinkingkong 10y ago
If its a static site why do you need react?
- tomelders 10y agoI have the same question. Not in a "pffft, why do you need that" kind of way, but in a "Hmmm, what aren't I seeing here" kind of way.
- rattray 10y agoSome people prefer it as a templating tool (myself included). React also enables some of the features of the tool. For example, hot reloading the contents of the page while writing/developing, which may make for a smoother experience. If this isn't to your taste or doesn't fit your requirements, I'm sure the OP and author of the tool would not be offended if you continued to use Jekyll et al.
- juandazapata 10y agoWhat is so special about hot reloading? Live Reload has been around for about a decade and it's compatible with everything that renders to a web browser. Am I missing something here?
- rattray 10y agoPresumably it's faster, but I haven't seen a comparison so I can't say. In interactive contexts, it probably helps to keep the application in a single state while reloading, but I don't believe that applies here.
- fooey 10y agoThink about something like a modal dialog that takes multiple clicks from a fresh page to get into. Hot reloading lets you dev on that dialog code without having to go through all the intermediate steps each time you save.
- juandazapata 10y agoThat feature must be super useful for a static website generator.