News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by ______-_-______ on Tuesday March 01, 2022 @08:46AM (#30514002)
Solid's <For> doesn't rely on any build-time magic, other than the JSX custom function call syntax that is also present in React. If you want, you can even call it like an ordinary function:

    function MyComponent() {
        return For({
            each: [1,2,3,4],
            children: x => <div>{x}</div>,
        })
    )
It's just a function call, and it doesn't even need `React.createElement`. What's more pure than that?
Re:Solid.js feels like what I always wanted React to be by scotty79 on Tuesday March 01, 2022 @04:56PM (#30520596)
Normal for statement is more pure than that.
Re:Solid.js feels like what I always wanted React to be by recursive on Tuesday March 01, 2022 @08:31PM (#30522530)
Functional purity? `for` can only have side effects. It has no functional purity. It doesn't even have a value.
Re:Solid.js feels like what I always wanted React to be by scotty79 on Thursday March 03, 2022 @04:00PM (#30546931)
Imperative purity.