Best of Web Components2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    New Features in React 19 – Updates with Code Examples

    React 19 introduces new features such as the React compiler, server components, actions, web components, enhanced hooks, asset loading, and form hooks. These changes aim to improve performance, simplify coding, and enhance the user experience.

  2. 2
    Article
    Avatar of asayerasayer·2y

    HTMX 2.0 is here: Everything you must know about it

    HTMX 2.0, released in June 2024, brings several significant improvements to the JavaScript library used for creating dynamic web applications directly in HTML. New features include better support for Web Components, adherence to HTTP standards, and improved extension management. The new version addresses limitations and non-standard behaviors of HTMX 1.0, and migration to HTMX 2.0 requires minimal effort due to the focus on backward compatibility. A public roadmap is being developed, and more details can be found through the HTMX community and GitHub page.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    wandb/openui: OpenUI let's you describe UI using your imagination, then see it rendered live.

    OpenUI allows users to describe UI using their imagination and see it rendered live. It can convert HTML to various languages like React, Svelte, and Web Components.

  4. 4
    Article
    Avatar of devtoDEV·2y

    JavaScript is not the problem

    A performance issue in an Angular 11 app was caused by a CSS rule, not JavaScript. The article discusses the use of JavaScript in web development and the importance of optimizing static assets and JavaScript bundles. It also addresses the role of Web Components and the Shadow DOM, concluding that excessive use of JavaScript is the problem, not JavaScript itself.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Enhance

    Enhance provides everything you need to build a production ready web app, including server rendered custom elements that seamlessly upgrade to interactive Web Components. It allows for incremental upgrades of interactive elements and eliminates the need for full page renders. Enhance also focuses on deployment and provides a solution for launching apps.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    Plain Vanilla

    An overview of building web sites and applications purely with web standards without the need for frameworks or build tools. It covers the use of Web Components, modern CSS techniques, and strategies for creating and deploying web projects. This guide is ideal for experienced developers looking for a simpler, zero-maintenance approach to web development.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    Virtual DOM vs Shadow DOM – What's the Difference?

    Virtual DOM and Shadow DOM serve different purposes in web development. Virtual DOM optimizes performance by minimizing DOM manipulations, while Shadow DOM encapsulates the style and behavior of web components.

  8. 8
    Article
    Avatar of lobstersLobsters·2y

    State of HTML 2023

    The State of HTML survey covers a wide range of topics including accessibility, web components, and more. The report includes improved chart customization features.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Why Tailwind Isn't for Me

    The author explains why they do not like Tailwind CSS, citing concerns about its HTML structure, compatibility issues with other CSS frameworks, reliance on non-standard features like `@apply`, lack of support for web components, and encouragement of div/span-tag soup in markup.

  10. 10
    Article
    Avatar of communityCommunity Picks·2y

    github/github-elements: GitHub's Web Component collection.

    GitHub has created a collection of 17 open source custom web components. These include elements for input validation, autocomplete, clipboard copying, modal dialogs, drag-and-drop file attachment, filtering text, native emoji fallback, image cropping, markdown formatting, and more. Each component is designed to enhance the functionality and accessibility of web applications.

  11. 11
    Article
    Avatar of devtoDEV·2y

    Aftermath of switching from VSCode to Neovim

    Exploring the value of deep learning and understanding of technologies, such as Web Components and Neovim, even if they may not be immediately used in projects.

  12. 12
    Article
    Avatar of communityCommunity Picks·2y

    Standalone Elements

    A list of standalone web components with minimal dependencies, such as <ax-comments>, <chess-board>, and <code-block>.

  13. 13
    Article
    Avatar of bytesdevBytes by ui.dev·2y

    Big W for Web Components

    Declarative Shadow DOM is now supported by all major browsers, enabling server-side rendering for Web Components. This enhancement addresses previous limitations and improves SEO, streaming rendering, and prevents FOUC. Additionally, Expo's EAS Update offers a flexible tool for over-the-air updates, making the update process more efficient and affordable. The post also discusses various tips and insights on JavaScript and app development, including a JavaScript array reference trick and resources for improving React development skills.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    The Design System Ecosystem

    A design system ecosystem is a collection of interconnected assets and components that support the development of digital products. It includes layers such as core design system, technology-specific implementation, recipe layer, smart component layer, and the product layer.

  15. 15
    Article
    Avatar of logrocketLogRocket·2y

    Build an off-canvas menu with <dialog> and web components

    Learn how to build an off-canvas menu using the <dialog> element and web components. Ensure accessibility and enhance user experience by following the steps provided. Style the menu using CSS to achieve desired animations and positioning.

  16. 16
    Article
    Avatar of lobstersLobsters·2y

    HTMX and Web Components: a Perfect Match

    The post discusses the use of Web Components and HTMX together to create reusable, framework-agnostic components. It explains the process of creating and using Web Components in the context of HTMX, provides examples of using Web Components with HTMX, and emphasizes the importance of a white box philosophy in component development.

  17. 17
    Article
    Avatar of devtoDEV·2y

    Removing React is just weakness leaving your codebase

    React has undergone many changes and developers are voicing their displeasure. It is suggested to consider alternatives to React, explore adding web components to existing React applications, and focus on learning web fundamentals.

  18. 18
    Article
    Avatar of communityCommunity Picks·2y

    Getting into web components - an intro

    The post introduces web components and explores the basics and lingo associated with them. It also discusses the developer experience of creating web components and highlights the use of the Lit library for easier development. Recommended reads and resources are provided for further learning.

  19. 19
    Article
    Avatar of htmxhtmx·2y

    > htmx ~ Web Components Work Great with htmx

    htmx allows for the seamless integration of Web Components in web projects by taking advantage of its DOM-based lifecycle. This approach, termed Islands of Interactivity, enables developers to mix and match different JavaScript frameworks within multi-page applications. By treating HTML with respect and using hypermedia principles, htmx offers a flexible and efficient way to manage complex frontend functionality without locking developers into a single paradigm or facing the challenges typical of major JavaScript frameworks.

  20. 20
    Article
    Avatar of hnHacker News·2y

    The Web Platform Framework

    Brisa is a web platform framework designed for building fast and simple applications with minimal client-side JavaScript by default. It emphasizes server-side rendering (SSR) using JSX components and supports Web Components to manage client interactions. Brisa also offers features like handling browser events on the server, built-in internationalization (i18n), and multi-platform capabilities. The framework aims to unify server and client environments, leveraging native web APIs, Declarative Shadow DOM, and signals to enhance performance and developer efficiency. Additionally, the project is open-source and encourages community contributions.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    Taming the Shadow DOM: Injecting Global Styles with Adopted Stylesheets

    This post explores how to use adopted stylesheets to inject global styles into web components and bridge the gap between the Shadow DOM and global styles. It discusses the purpose of the Shadow DOM in web components and provides considerations for using adopted stylesheets.

  22. 22
    Article
    Avatar of twirThis Week In React·1y

    This Week In React #214: Base UI, Custom Elements, Next.js, React Router, i18n, OG, Apollo, Android XR, iOS targets, Nitro, RNTL, Volume Manager, Drag Select, brownfield, Zod, Node, SourceMaps, Bun, S

    Exciting developments this week include a new headless component library for React, the introduction of Android XR with upcoming React Native support, and various interesting articles about custom elements and Web Components. Key updates feature React Bricks becoming more accessible, React 19's full support for custom elements, new features in Next.js, and a preview of Vite plugin for React Router framework features. The post also highlights major releases like Inertia 2.0 for Laravel integration, Apollo Client 3.12 with improved GraphQL fragment data masking, and React Native updates including new iOS targets and Google’s Android XR SDK.

  23. 23
    Video
    Avatar of communityCommunity Picks·1y

    I tried HTMX, again...

    HTMX is a JavaScript library that allows developers to harness modern browser features directly within HTML without extensive JavaScript coding. It supports Ajax, CSS transitions, WebSockets, and server-sent events. HTMX simplifies dynamic web app development by reducing boilerplate code and enabling requests from any HTML element. It's particularly beneficial for developers who prefer not to dive deep into JavaScript or front-end frameworks. Wider adoption could lead to improved tooling and further innovation in this space.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    The carcinization of web frameworks

    Web frameworks are converging towards a similar set of features, including immutability, single-directional flow of data, signals, and server-side rendering. Predictions for the future include resumability and wider adoption of web components. The proliferation of frameworks has led to a clearer understanding of browser needs and the potential for framework-like capabilities without the need for a full framework.

  25. 25
    Article
    Avatar of communityCommunity Picks·2y

    Open Props: sub-atomic styles

    Open Props provides sub-atomic styles that can be easily imported in CSS, PostCSS, JavaScript, and NPM. It offers a wide range of individual imports for different styles and themes. Users can also customize their Open Props build to suit their specific needs.