6

GitHub - exhibitionist-digital/ultra: 🦕 Deno + React: No build, no bundle, all s...

 3 years ago
source link: https://github.com/exhibitionist-digital/ultra
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Ultra

Deno + React: No build, no bundle, all streaming

Ultra is a web framework that leans hard into your browser's native features. Embrace the future of ES Modules, Import Maps, and Web Streams. All while supporting some of the non-standards that many normal people love for some reason (JSX and TypeScript).

It's driven by the following hot-takes:

  • ESM is non-negotiable in {currentYear}
  • SSR is non-negotiable in {currentYear}
  • Bundling is an anti-pattern in {currentYear}
  • Data can be requested anywhere, and is accessible on the server, always
  • Lazy routing with dynamic imports trumps FS routing
  • Less magic in tooling and frameworks is a good thing
  • Simplify your workflow and tech stack at all costs - life is too short
  • Streams are neat

Warning: The following is built around the alpha version of React 18. Mileage may vary.

Here are some neat demos:

woman_astronautman_astronaut React 18: Suspense SSR

Demo (taken from React's release announcement)

firefire React Three Fiber

Threejs, react, no build, no bundle

Quick start

The most minimal setup of Ultra can be found at /examples/boilerplate. There are more /examples as well.


HOW IT WORKS

LAZY ROUTING

SUSPENSE DATA FETCHING

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK