News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by thatswrong0 on Tuesday March 01, 2022 @03:02AM (#30511031)
'apple' and 'slicedApple' would more likely be strings / objects / arrays in the real world. Maybe this still woefully contrived version is clearer?

  function FacebookComment({ commentId }) {
    const comment = useGetComment(commentId);
    const likes = useGetLikes(comment);
  
    return (
      <div>
        <span>{comment.text}</span>
        <span>{likes.length} likes</span>
      </div>
    );
  }
I don't think deal with more braces right now to bring the alternative into existence unfortunately
Re:Solid.js feels like what I always wanted React to be by masterofmisc on Tuesday March 01, 2022 @07:57AM (#30513525)
Ohh i see. Yes, that makes sense. Thanks for taking the time to reply.