News for hackers. Stuff that matters.
Re:The self-fulfilling prophecy of React by spartanatreyu on Thursday September 08, 2022 @10:24PM (#32774573)
What do you mean by a component that takes an arbitrary node to render?

Do you mean a component that renders out to a node?

Or a component that takes in a node external to the component so it can render to that external node (as opposed to or in conjunction with a node inside the component)?

If the first, isn't this just the job of the component's <template> or jsx?

If the second, isn't this what slots are for?

There are no comments on this comment yet.