DEV Community

Cover image for RegularElements
artydev
artydev

Posted on

3 1

RegularElements

Quote from site: "Everything I love about Custom Elements made available for any node, and through CSS selectors.
No Custom Elements, no Shadow DOM, and no polyfills are needed.
"

You can test it here : RegElt

<button class="hi-five">
    Hi Five One
</button>
<button class="hi-five">
    Hi Five Two
</button>
Enter fullscreen mode Exit fullscreen mode
import {define} from 'regular-elements';

define('.hi-five', {
  connectedCallback() {
    this.innerHTML = ' 🖐 ' + this.innerHTML;
  }
});
Enter fullscreen mode Exit fullscreen mode

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️