Fresh is a full stack web framework based on Deno and Preact. Fresh boosts over sending zero JavaScript to client by performing server-side rendering by default. This is wonderful news and great concept. Frameworks like React and Vue sends clients loads of unnecessary JavaScript who's task can be as simple as routing.
So what the hell is Deno and Preact?
Deno is defined as a simple, modern and secure runtime for JavaScript, TypeScript, and WebAssembly that uses V8 and is built in Rust. from deno documentation.
To install Deno follow the following documentation
Preact is an alternative to Facebook react that ships with less kilobytes than react. It borrows most of its patterns such as classes, hooks, and functional components from react (its a mimic of react). You should consider preact if your looking for performance in your app. Preact is only 3.5kb and renders quickly.
NB: Uber shifted its PWA to Preact to make it high perfomant. It is also highly compatible with react.
Getting started with Fresh
deno run -A -r https://fresh.deno.dev fresh-app
fresh-app/ ├── README.md ├── deno.json ├── dev.ts ├── fresh.gen.ts ├── import_map.json ├── islands │ └── Counter.tsx ├── main.ts ├── routes │ ├── [name].tsx │ ├── api │ │ └── joke.ts │ └── index.tsx └── static ├── favicon.ico └── logo.svg
Start The App
deno task start