Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Web Components Eliminate JavaScript Framework Lock-In. Parent comment
But there several alternatives:
1. Use DOM APIs (createElement).
2. Fetch the HTML as a separate resource.
3. Have the HTML in a separate file and bundle it with a bundler.
4. Use React/JSX.
5. Use a preferred templating library of your choice.
You can do whichever of these you like the most
There are no comments on this comment yet.
But there several alternatives:
1. Use DOM APIs (createElement).
2. Fetch the HTML as a separate resource.
3. Have the HTML in a separate file and bundle it with a bundler.
4. Use React/JSX.
5. Use a preferred templating library of your choice.
You can do whichever of these you like the most