Comment

Comment by cpburns2009

I want to handle a JSON response because I usually return data for multiple page elements. These aren't external APIs, they're requests to the backend server.

A simple example is adding a note to a product or order. When you submit it, it gets inlined, and say a visual note counter is incremented. Usually I'll return multiple HTML fragments if it's convenient, but I'll return a data structure if needed.

parent cpburns2009 3 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton