shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

243
active users

#customelements

0 posts0 participants0 posts today

In that it was dropped as part of a thread that you might have otherwise been uninterested in, sharing this again to start your Thursday:

blog.westbrookjohnson.com/patt

Catch up on some techniques for managing connection time work in a custom element. 😁 There's even reasons for using shadow DOM hidden in there. 😱

Thanks @nachtfunke for starting the convo on this and @zachleat for challenging a toot into a full on blog dump. 🙇

blog.westbrookjohnson.comI'm feeling so disconnected
Continued thread

#WebComponents な Custom Elements である以上、属性値では基本 String しか渡せないはずなので

> Riot.js passes all primitive data (strings, numbers, booleans) to Custom Elements as attributes

これは Custom Elements としてはちょっと解せないんだよな…
今手元で試しても props は全部 strings になっちゃうし。

ただ、

> It passes complex data (Objects, Arrays) to Custom Elements as properties.

これについては、たとえば親コンポーネントの中で

```
this.root.shadow.querySelector('子コンポーネント要素').プロパティ名
```

という風にすると、親から子の中のプロパティに Object とか Array を渡すことができた。

📢 Web Components bookmarks project finally got a proper Home page! 🎉

- Projects about Web Components that I recommend,
- Other #opensource projects I'm proud to be part of.

Check it out and please #boost to spread the word if you like the project!

My goal is to make it an ultimate knowledge base about #CustomElements, #ShadowDOM and other #WebComponents standards.

webcomponents.today

webcomponents.todayWeb Components TodayA curated collection of Web Components resources

Did you know that #WebComponents and #React can be used together?
There are several #javascript libraries for it, these two look interesting:

- React Shadow: use #ShadowDOM with React easily;
- Remount: use React components as #CustomElements.

Check out the #frameworks recipes page for more:

webcomponents.today/frameworks

webcomponents.todayFrameworks RecipesTechniques related to using web components together with JavaScript frameworks.