LINKDING
Login
Shared bookmarks
Sort by
Added ↑
Added ↓
Title ↑
Title ↓
Apply
Tags
Web component gotcha: constructor vs connectedCallback | Read the Tea Leaves
#web-components
|
A common mistake I see in web components is this: This setupLogic() can be just about anything – subscribing to a store, setting up event listeners, etc. The teardownLogic() is designed to undo those things – unsubscribe from a store, remove event listeners, etc. The problem is that constructor is called once, when the component…
5 months ago
|
View
Shared by
tom
My approach to HTML web components
#miniflux
#web-components
#web-dev
|
Naming custom elements, naming attributes, the single responsibility principle, and communicating across components.
5 months ago
|
View
Shared by
tom
GitHub - WickyNilliams/cally: Small, feature-rich calendar components
#web-components
|
Small, feature-rich calendar components. Contribute to WickyNilliams/cally development by creating an account on GitHub.
6 months ago
|
View
Shared by
tom
Previous
1
Next
User
Everyone
tom
Apply
Tags
-web-components
m
iniflux
w
eb-dev
My approach to HTML web components
https://adactio.com/journal/21078
Internet Archive
Tags
#miniflux
#web-components
#web-dev
Date added
April 30, 2024, 9:19 a.m.
Description
Naming custom elements, naming attributes, the single responsibility principle, and communicating across components.