Code Monkey home page Code Monkey logo

Comments (1)

kettanaito avatar kettanaito commented on April 27, 2024

From the examples, I can deduce that different DOM bindings behave differently. I suppose it's tied to their nature, such as compiler-based bindings somehow utilize the compiler to help out.

It's interesting, however, that the ESM flight example doesn't need the react-server condition. Does it not mean broken RSC? 🤔 How will it handle "use client"/"user server" in the components? Is that condition simply an environment guard?

If you want to understand the context around my questions, I'd like to build the simplest RSC rendering pipeline possible for testing. This:

const renderer = new Renderer({
  component() {
    return <button>Hello</button>
  }
})
await renderer.serve()

I want it to:

  1. Render my component.
  2. Spawn the actual HTTP server.
  3. Stream its HTML as the initial page HTML from the server.
  4. Embed the right bootstrapModule that hydrates my component so it becomes interactive.
  5. Gives the user control over how to resolve Server Actions as a part of the Renderer API (just having the way to know when the actions happen may be enough).

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.