3 ms·
Static doesn’t mean no JavaScript. Usually it means it’s not rendered on the server. Every time i start making a static website, i end up needing to include a
by zwily 3y ago
Static doesn’t mean no JavaScript. Usually it means it’s not rendered on the server.
Every time i start making a static website, i end up needing to include a table (or some other structured display of data) and then just switch to JSX to render the data with a loop. Sometimes i then render it as html and deploy, and sometimes i deploy it as react. But that’s how i usually end up using React even when static.
- satvikpendem 3y agoIndeed, static just means that the site files can be on a CDN and not need to change. Technically, SPAs are also static, if they spit out pure HTML, CSS and JS files that you can put on a CDN.