rockerest’s avatarrockerest’s Twitter Archive—№ 19,232

  1. …in reply to @kmelve
    kmelve Depends what you mean by pass state in: If you mean at compile time (you probably don't), then you can access their properties like any other object. So if you have a CartWidget, you can CartWidget.items = [ new, list ].
    1. …in reply to @rockerest
      kmelve If you mean during runtime, I'd lean heavily on the event mediator to pass messages, which means components subscribe and publish to the main bus and respond to appropriate events (like "ITEM_ADDED" -> "itemId" 123, etc.). If you're getting into the realm of regular rerenders,
      1. …in reply to @rockerest
        kmelve I'd say you're getting into the space where something like Lit (comprised of lit-html and lit-element) is the right tool. It smooths some of the edges off that kind of reactive binding.