docs/latest/concepts/index.md
The way Fresh works is that it receives a
Request, passes it
through one or more middlewares until one of them responds. This can be an HTML
response, a JSON response or any other response for that matter.
If the response was HTML and contained Islands (=interactive Preact components), Fresh will boot them up in the browser and execute the relevant JavaScript.
Here is an overview of the basic concepts in Fresh:
Response. Used to set headers, or pass state to other middlewares. When a
middleware doesn't call the next one and returns a response, it's usually
called a "handler".Advanced concepts:
<body>-tagctx.render() across routes