News for hackers. Stuff that matters.
Re:A whole website in a single JavaScript file by rglover on Wednesday April 06, 2022 @07:52PM (#30938940)
The truth I learned building my own SSR JavaScript framework is that it's not that complicated, it's just made complicated.

1. Get some data from a database/source.

2. Pass that data to a template/component.

3. Convert that template/component to HTML (using the given framework's version of renderToHTML()).

4. Return the HTML to your HTTP request.

For example, here's the SSR for my framework: https://github.com/cheatcode/joystick/blob/development/node/.... It blew my mind when I wrote it because I was under the impression it would be more difficult.

There are no comments on this comment yet.