This is yet another explanation of why async and return await is pointless, coming from this post.
// async means that this:
const fn = async (...args) => {/* stuff */};
// is basically the equivalent of this:This is yet another explanation of why async and return await is pointless, coming from this post.
// async means that this:
const fn = async (...args) => {/* stuff */};
// is basically the equivalent of this:This is some sort of answer to recent posts regarding Web Components, where more than a few misconceptions were delivered as fact.
Let's start by defining what we are talking about.
As you can read in the dedicated GitHub page, Web Components is a group of features, where each feature works already by itself, and it doesn't need other features of the group to be already usable, or useful.
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs