News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by branko_d on Tuesday March 01, 2022 @08:10AM (#30513639)
> In React, your component can fit within a single file

Furthermore, a lambda local to a function can be a full-blown component (visible in DevTools etc.).

So if you need a component that is used in only one other component, you can neatly encapsulate it and make it invisible from the outside, which can be useful on occasion.

There are no comments on this comment yet.