[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"chrome-reviews:carousel:en:12:true":3,"blog-article-en-how-to-use-web-components-in-react":64,"chrome-reviews:banner:en":177},[4,9,14,19,24,29,34,39,44,49,54,59],{"reviewer":5,"reviewText":8},{"name":6,"avatarURL":7},"Mary Trisha Joie Quiddam","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjW4DXKAC5hjEBkSVsldpYZ3LrgmeCsBxF2nODbcO1__N3JQe5s=s32","Very useful so I don't have to save the page as pdf and save on my ipad just to annotate.",{"reviewer":10,"reviewText":13},{"name":11,"avatarURL":12},"Yonda rass","https:\u002F\u002Flh3.googleusercontent.com\u002Fa\u002FACg8ocKc4IXT46ayRTtzMtSRfgC34A4Ip2CY6qTefY525Q-ClGR5BA=s32-mo","Saves me so much time! Highlighting web content and PDFs with Web Highlights is a breeze.",{"reviewer":15,"reviewText":18},{"name":16,"avatarURL":17},"Shariff Muhammad","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjXyRpeGFwg9hftTjz3m235ntV0pkFyVHOUIJy66JB-DxGqGNw4=s32","Highlighting key sections and adding notes directly on web articles\u002FPDFs is seamless.",{"reviewer":20,"reviewText":23},{"name":21,"avatarURL":22},"Aniki","https:\u002F\u002Flh3.googleusercontent.com\u002Fa\u002FACg8ocLCTYyCH1zT3VgVs6yCjZfaFrpmYkXVfszQTUVZHnl4m7poxSg=s32-mo","Exactly what I wanted. Easy to highlight and read your highlighted notes.",{"reviewer":25,"reviewText":28},{"name":26,"avatarURL":27},"Abdullah Yahya","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjV1uE5X-HaCZUntEH54L4UPFwMPwyk5ajrM_49uZoGHLg=s32","Good, Just wish free version had a feature to sync or export highlights.",{"reviewer":30,"reviewText":33},{"name":31,"avatarURL":32},"Dipo O","https:\u002F\u002Flh3.googleusercontent.com\u002Fa\u002FACg8ocJsrxOmCWFWyQj6J2KT7ElJCvFmXKcvqas4ddlYbFeAkcQanw=s32-mo","This app is a life saver for the course I am studying for. Couldn't recommend this more. Bravo.",{"reviewer":35,"reviewText":38},{"name":36,"avatarURL":37},"Oscar Amaya","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjX-3QX8PeguZOp58h812Uo1VIc65XPWHqhk7BYcQFdDiyWucSM=s32","Great extension! I especially love the taking-notes and adding-tags functions!",{"reviewer":40,"reviewText":43},{"name":41,"avatarURL":42},"Julia Breviglieri","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjWSRh_UlKyQ27ImmEtIn1yjlPiHWzduqqf9FrkHcKx7skvOlYI=s32","I use this extension almost everyday to study and highlight researches! Love it, 10\u002F10",{"reviewer":45,"reviewText":48},{"name":46,"avatarURL":47},"thet hmue","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjXJkG_ev_LzL8Xjm2tQ83m0dzHgCnBYc3br8fjmD0Uj19pMLYY=s32","nice and I love it. It really help me when i read research books , notes .Love it",{"reviewer":50,"reviewText":53},{"name":51,"avatarURL":52},"Vlad","https:\u002F\u002Flh3.googleusercontent.com\u002Fa\u002FACg8ocKYOOaBUFJl9Dc51_JsK-7h0_ieoQrXuV0mEa1bTAowfa6yYw=s32-mo","Probably the best tool to store notes and highlight things you read on internet.",{"reviewer":55,"reviewText":58},{"name":56,"avatarURL":57},"Mariah Kenney","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjU-7sAAz6hEiFqDwssKkaTtN2v7_BgRJQiwSw77-PrZ3oc=s32","Great tool for studying. I like that you can add notes to highlighted sections.",{"reviewer":60,"reviewText":63},{"name":61,"avatarURL":62},"Vivaan Jain","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjV1dExK7-JYkzMu9UnUlfz8xaBlq6eKUR7dKeGMBfKgjoXD208=s32","Best highlighting tool I've tried. Highly recommend and I love the variety of colors readily available :)",{"meta":65,"html":90,"authorName":91,"authorFacebookUrl":92,"authorProfileImage":93,"authorWebsite":94,"authorJobTitle":95,"authorTwitterUrl":96,"wordCount":97,"recommended":98},{"id":66,"slug":67,"type":68,"title":69,"excerpt":70,"metaTitle":71,"metaDescription":71,"canonicalUrl":71,"featureImage":72,"publishedAt":77,"createdAt":78,"updatedAt":79,"featured":80,"readingTime":81,"tags":82,"author":89,"recommendedSlugs":71},"63681e8972d57a060160cf48","how-to-use-web-components-in-react","post","How To Use Web Components in React","Web Components enable us to develop entirely independently of frontend frameworks. Here is how to use them in React.",null,{"url":73,"alt":74,"caption":69,"width":75,"height":76},"\u002Fblog\u002Fcontent\u002Fimages\u002F2026\u002F07\u002Fhow-to-use-web-components-in-react.jpg","Shaking Hands with black transparent overlay showing React and Web Components Logo",1200,630,"2022-11-06T21:18:45.000+00:00","2022-11-06T20:52:25.000+00:00","2024-09-19T19:13:10.000+00:00",false,5,[83,86],{"name":84,"slug":85},"Web Components","web-components",{"name":87,"slug":88},"React","react","marius-bongarts","\u003Cp>Many developers worry that Web Components might replace frontend frameworks and libraries.\u003C\u002Fp>\n\u003Cp>\n  In our eyes, that will not happen because they tackle different issues. The real key to a robust software architecture\n  is combining them.\n\u003C\u002Fp>\n\u003Cblockquote>\n  \u003Cem>“Most people who use React don’t use Web Components, but you may want to […].” — \u003C\u002Fem>\n  \u003Ca href=\"https:\u002F\u002Freactjs.org\u002Fdocs\u002Fweb-components.html\" rel=\"noopener ugc nofollow noopener noopener\">\u003Cem>https:\u002F\u002Freactjs.org\u003C\u002Fem>\u003C\u002Fa>\n\u003C\u002Fblockquote>\n\u003Cp>Before we dive into our example, let's look at the purpose of Web Components and React.\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-bookmark-card\">\n  \u003Ca\n    class=\"kg-bookmark-container\"\n    href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fwill-web-components-replace-frontend-frameworks-they-are-built-to-solve-different-problems\u002F\"\n  >\u003Cdiv class=\"kg-bookmark-content\">\n      \u003Cdiv class=\"kg-bookmark-title\">Will Web Components Replace Frontend Frameworks?\u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-description\">\n        Web Components will not replace frontend frameworks but they can enhance those frameworks by replacing their\n        component layer with a native solution.\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-metadata\">\n        \u003Cimg class=\"kg-bookmark-icon\" src=\"https:\u002F\u002Fweb-highlights.com\u002Ffavicon.ico\" alt=\"\" \u002F>\n        \u003Cspan class=\"kg-bookmark-author\">Web Highlights Blog\u003C\u002Fspan>\n        \u003Cspan class=\"kg-bookmark-publisher\">Marius Bongarts\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"kg-bookmark-thumbnail\">\n      \u003Cimg src=\"\u002Fblog\u002Fcontent\u002Fimages\u002F2022\u002F10\u002Fwebcomponents.webp\" alt=\"\" \u002F>\n    \u003C\u002Fdiv>\u003C\u002Fa>\n\u003C\u002Ffigure>\n\u003Ch2 id=\"purpose-of-web-components\">Purpose of Web Components\u003C\u002Fh2>\n\u003Cp>\n  Web Components are reusable client-side components based on official web standards and supported by all major\n  browsers. They are an excellent way of\n  \u003Cstrong>encapsulating\u003C\u002Fstrong>\n  functionality\n  \u003Cstrong>\u003C\u002Fstrong>\n  from the rest of our code. Not only that, but you can\n  \u003Cstrong>reuse\u003C\u002Fstrong>\n  them in every web application and web page.\n\u003C\u002Fp>\n\u003Cp>\n  Their purpose is to write strongly encapsulated custom elements to use everywhere. Web Components enable us to develop\n  entirely independently of frontend frameworks.\n\u003C\u002Fp>\n\u003Cblockquote>\n  \u003Cem>The primary benefit of Web Components is that we can use them everywhere. With any framework, or even without a\n    framework. — \u003C\u002Fem>\n  \u003Ca href=\"https:\u002F\u002Fv3.vuejs.org\u002Fguide\u002Fweb-components.html\" rel=\"noopener ugc nofollow noopener noopener\">\u003Cem>vuejs.org\u003C\u002Fem>\u003C\u002Fa>\n\u003C\u002Fblockquote>\n\u003Cp>\n  \u003Cstrong>It's really important to understand this point\u003C\u002Fstrong>: Web Components are web standards that can be used anywhere and will always be relevant!\n\u003C\u002Fp>\n\u003Cp>\n  For example, when I started building my PDF &amp; Web Highlighter Chrome Extension five years ago, I chose to create\n  the core parts of my extension using Web Components.\n\u003C\u002Fp>\n\u003Cblockquote>\n  That doesn't mean you should build everything with Web Components. It's completely fine to\n  \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-to-use-web-components-in-react\u002F\">mix Web Components with React\u003C\u002Fa>\n  or any other frontend framework.\n\u003C\u002Fblockquote>\n\u003Cp>\n  Over the years, I've switched out nearly every other technology—like moving from Vue 2 to Vue 3 and then from a\n  client-side Vue app to Nuxt 3, among many other changes.\n\u003C\u002Fp>\n\u003Cp>\n  The one thing that has remained stable throughout it all is the Web Components, which have been with me since the\n  start.\n\u003C\u002Fp>\n\u003Cp>\n  If you want to learn more about my tech stack, you can\n  \u003Ca\n    href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F\"\n  >read more about it here\u003C\u002Fa>:\n\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-bookmark-card\">\n  \u003Ca\n    class=\"kg-bookmark-container\"\n    href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F\"\n  >\u003Cdiv class=\"kg-bookmark-content\">\n      \u003Cdiv class=\"kg-bookmark-title\">Web Highlights Tech Stack: Chrome Extension With 10k+ Users\u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-description\">\n        Explore the tech stack of Web Highlights, a Chrome extension using Web Components and Vue.js for saving and\n        highlighting web content easily.\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-metadata\">\n        \u003Cimg class=\"kg-bookmark-icon\" src=\"https:\u002F\u002Fweb-highlights.com\u002Ffavicon.ico\" alt=\"\" \u002F>\n        \u003Cspan class=\"kg-bookmark-author\">Web Highlights Blog\u003C\u002Fspan>\n        \u003Cspan class=\"kg-bookmark-publisher\">Marius Bongarts\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"kg-bookmark-thumbnail\">\n      \u003Cimg\n        src=\"\u002Fblog\u002Fcontent\u002Fimages\u002F2023\u002F02\u002FYellow-Bold-Education-Course-Vlog-YouTube-Thumbnail.webp\"\n        alt=\"\"\n      \u002F>\n    \u003C\u002Fdiv>\u003C\u002Fa>\n\u003C\u002Ffigure>\n\u003Ch2 id=\"purpose-of-react\">Purpose of React\u003C\u002Fh2>\n\u003Cp>\n  While Web Components provide strong encapsulation for reusable components, React provides a declarative library that\n  syncs the DOM with your data.\n\u003C\u002Fp>\n\u003Cblockquote>\n  \u003Cem>As a developer, you are free to use React in your Web Components, or to use Web Components in React, or both. — \u003C\u002Fem>\n  \u003Ca href=\"https:\u002F\u002Freactjs.org\u002Fdocs\u002Fweb-components.html\" rel=\"noopener ugc nofollow noopener noopener\">\u003Cem>https:\u002F\u002Freactjs.org\u003C\u002Fem>\u003C\u002Fa>\n\u003C\u002Fblockquote>\n\u003Cp>\n  The main difference between React components and Web Components is that React components can only be used inside a\n  React application. A Web Component, on the other hand, can be used anywhere.\n  \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-to-use-web-components-in-react\u002F\">We can use it in React\u003C\u002Fa>, Vue,\n  \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-to-build-a-chrome-extension-using-angular\u002F\">Angular\u003C\u002Fa>, or any other web application.\n\u003C\u002Fp>\n\u003Cp>\n  React, or other frameworks are the way to go when your components need to handle a lot of data that needs to be passed\n  down to child components.\n\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-bookmark-card\">\n  \u003Ca class=\"kg-bookmark-container\" href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-to-use-web-components-in-react\u002F\">\u003Cdiv class=\"kg-bookmark-content\">\n      \u003Cdiv class=\"kg-bookmark-title\">How To Use Web Components in React\u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-description\">\n        Web Components enable us to develop entirely independently of frontend frameworks. Here is how to use them in\n        React.\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-metadata\">\n        \u003Cimg class=\"kg-bookmark-icon\" src=\"https:\u002F\u002Fweb-highlights.com\u002Ffavicon.ico\" alt=\"\" \u002F>\n        \u003Cspan class=\"kg-bookmark-author\">Web Highlights Blog\u003C\u002Fspan>\n        \u003Cspan class=\"kg-bookmark-publisher\">Marius Bongarts\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"kg-bookmark-thumbnail\">\n      \u003Cimg src=\"\u002Fblog\u002Fcontent\u002Fimages\u002F2023\u002F08\u002Freact.webp\" alt=\"\" \u002F>\n    \u003C\u002Fdiv>\u003C\u002Fa>\n\u003C\u002Ffigure>\n\u003Ch2 id=\"building-a-web-component\">Building a Web Component\u003C\u002Fh2>\n\u003Cp>Let's go ahead and build our first Web Component, which we will integrate into a React application.\u003C\u002Fp>\n\u003Cp>\n  We will keep things simple and create an effortless custom element. If you are interested in building more complex Web\n  Components, go through my series of articles:\n  \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\">The Complete Web Component Guide\u003C\u002Fa>.\n\u003C\u002Fp>\n\u003Cp>\n  Here is the JavaScript code for our\n  \u003Ccode>hello-world\u003C\u002Fcode>\n  custom element:\n\u003C\u002Fp>\n\u003C!--kg-card-begin: html-->\n\u003Cdiv class=\"gist-embed\">\u003Cdiv id=\"gist116466752\" class=\"gist\">\n    \u003Cdiv class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      \u003Cdiv class=\"gist-data\">\n        \n\u003Cdiv class=\"js-gist-file-update-container js-task-list-container\">\n      \u003Cdiv id=\"file-hello-world-component-js\" class=\"file my-2\">\n    \n    \u003Cdiv itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-javascript  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"hello-world-component.js content, created by MariusBongarts on 10:15AM on May 24, 2022.\"\n    >\n\n        \n\u003Cdiv class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  \u003Ctemplate class=\"js-file-alert-template\">\n  \u003Cdiv data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  \u003Csvg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    \u003Cpath d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\">\u003C\u002Fpath>\n\u003C\u002Fsvg>\n    \u003Cspan>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      \u003Ca class=\"Link--inTextBlock\" href=\"https:\u002F\u002Fgithub.co\u002Fhiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters\u003C\u002Fa>\n    \u003C\u002Fspan>\n\n\n  \u003Cdiv data-view-component=\"true\" class=\"flash-action\">        \u003Ca href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n\u003C\u002Fa>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003C\u002Ftemplate>\n\u003Ctemplate class=\"js-line-alert-template\">\n  \u003Cspan aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    \u003Csvg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    \u003Cpath d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\">\u003C\u002Fpath>\n\u003C\u002Fsvg>\n\u003C\u002Fspan>\u003C\u002Ftemplate>\n\n  \u003Ctable data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"hello-world-component.js\">\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC1\" class=\"blob-code blob-code-inner js-file-line\">\u003Cspan class=pl-k>class\u003C\u002Fspan> \u003Cspan class=pl-v>HelloWorldComponent\u003C\u002Fspan> \u003Cspan class=pl-k>extends\u003C\u002Fspan> \u003Cspan class=pl-v>HTMLElement\u003C\u002Fspan> \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC2\" class=\"blob-code blob-code-inner js-file-line\">  \u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC3\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-en>constructor\u003C\u002Fspan>\u003Cspan class=pl-kos>(\u003C\u002Fspan>\u003Cspan class=pl-kos>)\u003C\u002Fspan> \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC4\" class=\"blob-code blob-code-inner js-file-line\">    \u003Cspan class=pl-smi>super\u003C\u002Fspan>\u003Cspan class=pl-kos>(\u003C\u002Fspan>\u003Cspan class=pl-kos>)\u003C\u002Fspan>\u003Cspan class=pl-kos>;\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC5\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC6\" class=\"blob-code blob-code-inner js-file-line\">  \u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC7\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-en>connectedCallback\u003C\u002Fspan>\u003Cspan class=pl-kos>(\u003C\u002Fspan>\u003Cspan class=pl-kos>)\u003C\u002Fspan> \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC8\" class=\"blob-code blob-code-inner js-file-line\">    \u003Cspan class=pl-smi>this\u003C\u002Fspan>\u003Cspan class=pl-kos>.\u003C\u002Fspan>\u003Cspan class=pl-c1>innerHTML\u003C\u002Fspan> \u003Cspan class=pl-c1>=\u003C\u002Fspan> \u003Cspan class=pl-s>`&lt;h1&gt;Hello world!&lt;\u002Fh1&gt;`\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC9\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC10\" class=\"blob-code blob-code-inner js-file-line\">\n\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC11\" class=\"blob-code blob-code-inner js-file-line\">\u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC12\" class=\"blob-code blob-code-inner js-file-line\">\n\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-hello-world-component-js-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-hello-world-component-js-LC13\" class=\"blob-code blob-code-inner js-file-line\">\u003Cspan class=pl-s1>customElements\u003C\u002Fspan>\u003Cspan class=pl-kos>.\u003C\u002Fspan>\u003Cspan class=pl-en>define\u003C\u002Fspan>\u003Cspan class=pl-kos>(\u003C\u002Fspan>\u003Cspan class=pl-s>&quot;hello-world&quot;\u003C\u002Fspan>\u003Cspan class=pl-kos>,\u003C\u002Fspan> \u003Cspan class=pl-v>HelloWorldComponent\u003C\u002Fspan>\u003Cspan class=pl-kos>)\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n  \u003C\u002Ftable>\n\u003C\u002Fdiv>\n\n\n    \u003C\u002Fdiv>\n\n  \u003C\u002Fdiv>\n\n\u003C\u002Fdiv>\n\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"gist-meta\">\n        \u003Ca href=\"https:\u002F\u002Fgist.github.com\u002FMariusBongarts\u002F47507e554476dde29630ab43f612f0fa\u002Fraw\u002F56968e3bd01601ec005daad3bc806993bd0b9ea4\u002Fhello-world-component.js\" style=\"float:right\" class=\"Link--inTextBlock\">view raw\u003C\u002Fa>\n        \u003Ca href=\"https:\u002F\u002Fgist.github.com\u002FMariusBongarts\u002F47507e554476dde29630ab43f612f0fa#file-hello-world-component-js\" class=\"Link--inTextBlock\">\n          hello-world-component.js\n        \u003C\u002Fa>\n        hosted with &#10084; by \u003Ca class=\"Link--inTextBlock\" href=\"https:\u002F\u002Fgithub.com\">GitHub\u003C\u002Fa>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C!--kg-card-end: html-->\n\u003Cp>Having this JavaScript code loaded in our HTML, we can easily include our component like this:\u003C\u002Fp>\n\u003Cp>\u003Ccode>&lt;hello-world&gt;&lt;\u002Fhello-world&gt;\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cp>\n  That will show our \"\u003Cstrong>Hello World!\"\u003C\u002Fstrong>\n  headline. Try it yourself. Here is the\n  \u003Ca href=\"https:\u002F\u002Fcodepen.io\u002Fmarius2502\u002Fpen\u002FZErXXLL\" rel=\"noopener\">CodePen\u003C\u002Fa>.\n\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-embed-card\">\n  \u003Ciframe\n    id=\"cp_embed_ZErXXLL\"\n    src=\"https:\u002F\u002Fcodepen.io\u002Fmarius2502\u002Fembed\u002Fpreview\u002FZErXXLL?default-tabs=js%2Cresult&amp;height=300&amp;host=https%3A%2F%2Fcodepen.io&amp;slug-hash=ZErXXLL\"\n    title=\"Hello World Web Component\"\n    scrolling=\"no\"\n    frameborder=\"0\"\n    height=\"300\"\n    allowtransparency=\"true\"\n    class=\"cp_embed_iframe\"\n    style=\"width: 100%; overflow: hidden\"\n  >\u003C\u002Fiframe>\n\u003C\u002Ffigure>\n\u003Ch2 id=\"integrate-a-web-component-in-react\">Integrate a Web Component in React\u003C\u002Fh2>\n\u003Cp>\n  Let's include our Web Component in a running React application. To make it easy, we will use a React starter project\n  on\n  \u003Ca href=\"https:\u002F\u002Fstackblitz.com\u002Fedit\u002Freact-ts\" rel=\"noopener\">Stackblitz\u003C\u002Fa>. After that, we create the file\n  \u003Ccode>hello-world.js\u003C\u002Fcode>\n  and put the code of our Web Component from above in it.\n\u003C\u002Fp>\n\u003Cp>Next, we go into our React component and import our Javascript file, including the code of our Web Component:\u003C\u002Fp>\n\u003Cp>\u003Ccode>import .\u002Fhello-world\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cp>And voila! The preview displays our Web Component. We successfully integrated a custom element into React.\u003C\u002Fp>\n\u003Cp>Still, there is an error in the editor:\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-image-card kg-card-hascaption\">\n  \u003Cimg\n    src=\"https:\u002F\u002Fcdn-images-1.medium.com\u002Fmax\u002F1600\u002F1*5i-H6iqiBJsrdPWUK1jX5g.png\"\n    class=\"kg-image\"\n    alt=\"Property ‘hello-world’ does not exist on type ‘JSX.IntrinsicElements’.\"\n    loading=\"lazy\"\n  \u002F>\n  \u003Cfigcaption>Property does not exist&nbsp;error\u003C\u002Ffigcaption>\n\u003C\u002Ffigure>\n\u003Cp>\n  It says, \"\u003Cem>Property 'hello-world' does not exist on type 'JSX.IntrinsicElements'\"\u003C\u002Fem>. The error occurs because React components should always start with an uppercase letter. Our component's name begins\n  with a lowercase letter. So, should we change our custom tag to begin with an uppercase letter?\n\u003C\u002Fp>\n\u003Cp>Let's try this:\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-image-card kg-card-hascaption\">\n  \u003Cimg\n    src=\"https:\u002F\u002Fcdn-images-1.medium.com\u002Fmax\u002F1600\u002F1*mdRp-QzldV-4myWT2pBmww.png\"\n    class=\"kg-image\"\n    alt=\"Not a valid custom element name\"\n    loading=\"lazy\"\n  \u002F>\n  \u003Cfigcaption>Not a valid custom element&nbsp;name\u003C\u002Ffigcaption>\n\u003C\u002Ffigure>\n\u003Cp>\n  As you can see, I changed our custom tag to\n  \u003Ccode>Hello-world\u003C\u002Fcode>. But, when calling\n  \u003Ccode>customElements.define(\"Hello-world\")\u003C\u002Fcode>\n  the browser throws an exception because we are violating one of two rules to be followed for the element's tag name:\n\u003C\u002Fp>\n\u003Cul>\n  \u003Cli>\n    \u003Cem>Name has to\u003C\u002Fem>\n    \u003Cstrong>\u003Cem>start with a lowercase ASCII character\u003C\u002Fem>\u003C\u002Fstrong>\u003Cem>. It cannot have an uppercase ASCII character anywhere.\u003C\u002Fem>\n  \u003C\u002Fli>\n  \u003Cli>\n    \u003Cstrong>\u003Cem>Name must contain a dash\u003C\u002Fem>\u003C\u002Fstrong>\n    \u003Cem> — character. This dash character helps the browser to distinguish custom elements from regular elements.\u003C\u002Fem>\n  \u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\n  We are only allowed to use lowercase characters, and the component needs to contain at least one dash. So, how to fix\n  the error? Typescript gives us the possibility to declare our own types. To fix the error, we can define our custom\n  element type by extending React's\n  \u003Ccode>IntrinsicElements\u003C\u002Fcode>\n  interface like this:\n\u003C\u002Fp>\n\u003C!--kg-card-begin: html-->\n\u003Cdiv class=\"gist-embed\">\u003Cdiv id=\"gist116523561\" class=\"gist\">\n    \u003Cdiv class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      \u003Cdiv class=\"gist-data\">\n        \n\u003Cdiv class=\"js-gist-file-update-container js-task-list-container\">\n      \u003Cdiv id=\"file-app-tsx\" class=\"file my-2\">\n    \n    \u003Cdiv itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-tsx  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"App.tsx content, created by MariusBongarts on 09:14PM on May 26, 2022.\"\n    >\n\n        \n\u003Cdiv class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  \u003Ctemplate class=\"js-file-alert-template\">\n  \u003Cdiv data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  \u003Csvg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    \u003Cpath d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\">\u003C\u002Fpath>\n\u003C\u002Fsvg>\n    \u003Cspan>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      \u003Ca class=\"Link--inTextBlock\" href=\"https:\u002F\u002Fgithub.co\u002Fhiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters\u003C\u002Fa>\n    \u003C\u002Fspan>\n\n\n  \u003Cdiv data-view-component=\"true\" class=\"flash-action\">        \u003Ca href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n\u003C\u002Fa>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003C\u002Ftemplate>\n\u003Ctemplate class=\"js-line-alert-template\">\n  \u003Cspan aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    \u003Csvg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    \u003Cpath d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\">\u003C\u002Fpath>\n\u003C\u002Fsvg>\n\u003C\u002Fspan>\u003C\u002Ftemplate>\n\n  \u003Ctable data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"App.tsx\">\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC1\" class=\"blob-code blob-code-inner js-file-line\">\u003Cspan class=pl-k>declare\u003C\u002Fspan> global \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC2\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-k>namespace\u003C\u002Fspan> \u003Cspan class=pl-c1>JSX\u003C\u002Fspan> \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC3\" class=\"blob-code blob-code-inner js-file-line\">    \u003Cspan class=pl-k>interface\u003C\u002Fspan> \u003Cspan class=pl-smi>IntrinsicElements\u003C\u002Fspan> \u003Cspan class=pl-kos>{\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC4\" class=\"blob-code blob-code-inner js-file-line\">      \u003Cspan class=pl-s>&#39;hello-world&#39;\u003C\u002Fspan>: \u003Cspan class=pl-v>React\u003C\u002Fspan>\u003Cspan class=pl-kos>.\u003C\u002Fspan>\u003Cspan class=pl-smi>DetailedHTMLProps\u003C\u002Fspan>\u003Cspan class=pl-c1>&lt;\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC5\" class=\"blob-code blob-code-inner js-file-line\">        \u003Cspan class=pl-v>React\u003C\u002Fspan>\u003Cspan class=pl-kos>.\u003C\u002Fspan>\u003Cspan class=pl-smi>HTMLAttributes\u003C\u002Fspan>\u003Cspan class=pl-c1>&lt;\u003C\u002Fspan>\u003Cspan class=pl-smi>HTMLElement\u003C\u002Fspan>\u003Cspan class=pl-c1>&gt;\u003C\u002Fspan>\u003Cspan class=pl-kos>,\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC6\" class=\"blob-code blob-code-inner js-file-line\">        \u003Cspan class=pl-smi>HTMLElement\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC7\" class=\"blob-code blob-code-inner js-file-line\">      \u003Cspan class=pl-c1>&gt;\u003C\u002Fspan>\u003Cspan class=pl-kos>;\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC8\" class=\"blob-code blob-code-inner js-file-line\">    \u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC9\" class=\"blob-code blob-code-inner js-file-line\">  \u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n        \u003Ctr>\n          \u003Ctd id=\"file-app-tsx-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\">\u003C\u002Ftd>\n          \u003Ctd id=\"file-app-tsx-LC10\" class=\"blob-code blob-code-inner js-file-line\">\u003Cspan class=pl-kos>}\u003C\u002Fspan>\u003C\u002Ftd>\n        \u003C\u002Ftr>\n  \u003C\u002Ftable>\n\u003C\u002Fdiv>\n\n\n    \u003C\u002Fdiv>\n\n  \u003C\u002Fdiv>\n\n\u003C\u002Fdiv>\n\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"gist-meta\">\n        \u003Ca href=\"https:\u002F\u002Fgist.github.com\u002FMariusBongarts\u002F02075e843c3628700438b1803cd56fa9\u002Fraw\u002Fab7cbf254ed267bbc04ff9b3bfa68f0756d2ba3e\u002FApp.tsx\" style=\"float:right\" class=\"Link--inTextBlock\">view raw\u003C\u002Fa>\n        \u003Ca href=\"https:\u002F\u002Fgist.github.com\u002FMariusBongarts\u002F02075e843c3628700438b1803cd56fa9#file-app-tsx\" class=\"Link--inTextBlock\">\n          App.tsx\n        \u003C\u002Fa>\n        hosted with &#10084; by \u003Ca class=\"Link--inTextBlock\" href=\"https:\u002F\u002Fgithub.com\">GitHub\u003C\u002Fa>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C!--kg-card-end: html-->\n\u003Cp>\n  Finally, we have successfully integrated our custom element to React without any errors. Here is the\n  \u003Ca href=\"https:\u002F\u002Fstackblitz.com\u002Fedit\u002Freact-ts-t3gf2k?file=App.tsx\" rel=\"noopener\">final Stackblitz\u003C\u002Fa>\n  of the example:\n\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-embed-card\">\n  \u003Ciframe src=\"https:\u002F\u002Fstackblitz.com\u002Fedit\u002Freact-ts-t3gf2k?embed=1&amp;file=App.tsx\" height=\"400\" width=\"745\">\u003C\u002Fiframe>\n\u003C\u002Ffigure>\n\u003Ch2 id=\"final-thoughts\">Final Thoughts\u003C\u002Fh2>\n\u003Cp>\n  Using Web Components in React is easy. Building reusable components that are usable throughout frontend frameworks\n  brings many benefits. We have learned that we should use Web Components when creating reusable components to use\n  everywhere. When it comes to handling a lot of data, React is the way to go.\n\u003C\u002Fp>\n\u003Cp>\n  I hope you enjoyed reading this article. I am always happy to answer questions, and I am open to criticism. Feel free\n  to contact me at any time 😊\n\u003C\u002Fp>\n\u003Cp>\n  Get in touch with me via\n  \u003Cstrong>\u003C\u002Fstrong>\n  \u003Ca\n    href=\"https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmarius-bongarts-6b3638171\u002F\"\n    rel=\"noopener ugc nofollow noopener noopener noopener\"\n  >\u003Cstrong>LinkedIn\u003C\u002Fstrong>\u003C\u002Fa>\n  \u003Cstrong>\u003C\u002Fstrong>\n  or follow me on\n  \u003Ca href=\"https:\u002F\u002Ftwitter.com\u002FMariusBongarts\" rel=\"noopener ugc nofollow noopener noopener noopener\">\u003Cstrong>Twitter\u003C\u002Fstrong>\u003C\u002Fa>.\n\u003C\u002Fp>\n\u003Ch3 id=\"looking-for-productivity-browser-extensions\">Looking for Productivity Browser Extensions?\u003C\u002Fh3>\n\u003Cp>\n  At\n  \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fbrowser-tools\u002F\">Tooltivity\u003C\u002Fa>, we review the top productivity browser extensions. Read our detailed reviews here:\n\u003C\u002Fp>\n\u003Cfigure class=\"kg-card kg-bookmark-card\">\n  \u003Ca class=\"kg-bookmark-container\" href=\"https:\u002F\u002Fweb-highlights.com\u002Fbrowser-tools\">\u003Cdiv class=\"kg-bookmark-content\">\n      \u003Cdiv class=\"kg-bookmark-title\">Best Productivity Browser Extensions | Tooltivity\u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-description\">\n        Discover and compare the best productivity browser extensions at Tooltivity. Explore our in-depth reviews of top\n        tools to boost your browsing experience.\n      \u003C\u002Fdiv>\n      \u003Cdiv class=\"kg-bookmark-metadata\">\n        \u003Cimg class=\"kg-bookmark-icon\" src=\"https:\u002F\u002Fweb-highlights.com\u002Ffavicon.ico\" alt=\"\" \u002F>\n        \u003Cspan class=\"kg-bookmark-author\">Best Productivity Browser Extensions | Tooltivity\u003C\u002Fspan>\n        \u003Cspan class=\"kg-bookmark-publisher\">Marius Bongarts\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cdiv class=\"kg-bookmark-thumbnail\">\n      \u003Cimg src=\"https:\u002F\u002Fweb-highlights.com\u002Fbrowser-tools\u002Fimages\u002Ftooltivity-og-image.png\" alt=\"\" \u002F>\n    \u003C\u002Fdiv>\u003C\u002Fa>\n\u003C\u002Ffigure>\n","Marius Bongarts","https:\u002F\u002Fwww.facebook.com\u002FMariusBongartsWeb","\u002Fblog\u002Fcontent\u002Fimages\u002F2022\u002F08\u002FIMG_7861_Square.jpeg","https:\u002F\u002Fmarius-bongarts.de\u002F","Founder & Software Engineer","https:\u002F\u002Ftwitter.com\u002FMariusBongarts",1241,[99,129,150],{"id":100,"slug":101,"title":102,"description":103,"url":104,"publishedAt":105,"createdAt":105,"updatedAt":105,"featured":80,"readingTime":106,"tags":107,"imageUrl":110,"imageAlt":111,"faviconUrl":112,"publishedAtString":105,"category":113,"readTimeString":128},"0441538b7eab19615fc55b69","chrome-pdf-annotation-tool","Chrome Now Annotates PDFs. Do You Still Need a PDF Highlighter?","Chrome's PDF viewer can now highlight, draw, add text and sign. Here's what it does well, what's missing, and when a real PDF highlighter is worth it.","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fchrome-pdf-annotation-tool\u002F","2026-11-04T10:00:00.000Z",7,[108,109],"PDF","Chrome Extension","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fcontent\u002Fimages\u002F2026\u002F11\u002Fchrome-pdf-annotation-tool.jpg","Headline reading Chrome Now Annotates PDFs next to a screenshot of a PDF highlighted in three colors in Chrome's viewer","https:\u002F\u002Fweb-highlights.com\u002Ffavicon.ico",[114,121],{"type":115,"title":116,"shortTitle":117,"icon":118,"description":119,"excerpt":120},"annotating","Annotate the Web & PDFs with Web Highlights","Annotating","feather-edit-3","Annotating long texts is challenging. Learn techniques for better annotations and how Web Highlights helps you mark up articles and PDFs in the browser.","Annotation turns passive scrolling into real understanding. Whether you need marginal notes for research, structured tags for coursework, or quick highlights for newsletters, Web Highlights keeps every mark anchored to the source—so you can review, search, and export without losing context.",{"type":122,"title":123,"shortTitle":124,"icon":125,"description":126,"excerpt":127},"highlighting","Highlight Websites & PDFs in Chrome","Highlighting","mark-icon","From PDF highlighters to Chrome extensions—see how Web Highlights makes highlighting fast, colorful, and organized across the sites you read every day.","Highlighting should feel as natural as a physical marker, but with superpowers: multi-color marks, notes, tags, and sync. Web Highlights is built for both web pages and PDFs, so you can keep one workflow instead of juggling separate “PDF only” or “website only” tools.","7 min read",{"id":130,"slug":131,"title":132,"description":133,"url":134,"publishedAt":135,"createdAt":135,"updatedAt":135,"featured":80,"readingTime":136,"tags":137,"imageUrl":140,"imageAlt":141,"faviconUrl":112,"publishedAtString":135,"category":142,"readTimeString":149},"00be606ac1d14fce6eb81352","best-website-blocker-chrome-extensions","Top 10 Chrome Website Blocker Extensions: The Great Comparison","Compare the 10 best website blocker extensions for Chrome — LeechBlock NG, Cold Turkey, BlockSite, one sec and more — and how to block a site in Chrome.","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fbest-website-blocker-chrome-extensions\u002F","2026-10-27T12:00:00.000Z",23,[109,138,139],"comparison","Productivity","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fcontent\u002Fimages\u002F2026\u002F10\u002Fbest-website-blocker-chrome-extensions.jpg","10 Best Chrome Extensions to Block Websites",[143],{"type":144,"title":145,"shortTitle":139,"icon":146,"description":147,"excerpt":148},"productivity","Browser Productivity & Chrome Extensions","command","Curated extension lists, focus workflows, and tips for getting more from Chrome—always with an eye toward reading, capture, and learning.","Productivity isn’t only task managers. These articles cover the browser layer: extensions that protect focus, comparisons that save you from dead-end tools, and setup tips that keep your reading and capture stack lightweight but powerful.","23 min read",{"id":151,"slug":152,"title":153,"description":154,"url":155,"publishedAt":156,"createdAt":156,"updatedAt":156,"featured":80,"readingTime":157,"tags":158,"imageUrl":160,"imageAlt":161,"faviconUrl":112,"publishedAtString":156,"category":162,"readTimeString":176},"4dffbf0a73d9be5d6b04342f","best-text-to-speech-chrome-extensions","Top 10 Chrome Text to Speech Extensions: The Great Comparison","Compare the 10 best text to speech extensions for Chrome — GPT Reader, Helperbird, Speechify, Read Aloud and more — by free tier, voices and privacy.","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fbest-text-to-speech-chrome-extensions\u002F","2026-10-11T15:00:00.000Z",24,[109,138,159],"Reading","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fcontent\u002Fimages\u002F2026\u002F10\u002Fbest-text-to-speech-chrome-extensions.jpg","10 Best Chrome Extensions for Text to Speech",[163,169],{"type":164,"title":165,"shortTitle":159,"icon":166,"description":167,"excerpt":168},"reading","Reading Workflows with Web Highlights","reader","Whether you read on Kindle, Blinkist, or the web — Web Highlights brings all your highlights into one place so nothing gets lost between apps and devices.","Great reading isn’t only about finishing articles—it’s about capturing what matters. Web Highlights helps you save, tag, and revisit highlights across the reading tools you already use, so your “read later” list becomes a library you can actually search and reuse.",{"type":170,"title":171,"shortTitle":172,"icon":173,"description":174,"excerpt":175},"reader-mode","Distraction-Free Reader Mode","Reader mode","reader-extension-icon","Cut clutter and read comfortably. Learn how reader mode, clean typography, and highlights work together in Web Highlights for focused reading.","Reader mode isn’t just aesthetics—it protects attention. Web Highlights pairs a calm reading surface with highlighting and notes, so you can strip ads and sidebars without giving up the capture workflow you rely on for learning and research.","24 min read",[178,183,188,193,198,203],{"reviewer":179,"reviewText":182},{"name":180,"avatarURL":181},"Maria Mills","https:\u002F\u002Flh3.googleusercontent.com\u002Fa\u002FACg8ocKhTUz6aTHCJj3pErsWdRnTKqWmbnWhlQzCMPG0RM3O0EpC9A=s32-mo","As someone who has struggled with both ADHD and dyslexia, I can say with absolute certainty that Web Highlights has been a true game-changer in my life. It has had a profound impact on my ability to manage the challenges associated with my disabilities. …",{"reviewer":184,"reviewText":187},{"name":185,"avatarURL":186},"Ian Schnee","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjVm-Xwq3SExdsSuzvKDBdzjtDtJLXZmFsCC5YHSmNrnu2E=s32","Amazing Chrome extension--has my vote for one of the best things on the internet that's still free. If you want the added features of a paid account, like synching and backups, the cost is reasonable. …",{"reviewer":189,"reviewText":192},{"name":190,"avatarURL":191},"Syed Azhar Hussain Shah","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjXNpiQz6OeNK_-V8nQIKkEp86eyaHynjjD5IUsL7Pqhd2QOdcxxKA=s32","Excellent extension. I needed a program that I could use to highlight passages from different news articles for my research project. Web Highlighter became a life saver. There were other highlighter extensions, but only this had the options to save passages and add tags to them. …",{"reviewer":194,"reviewText":197},{"name":195,"avatarURL":196},"Isabella Frias","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjU7y1PlNcZWfyuKKbdN6l6NcK1naQflzJOdefq4yGLn7HM=s32","LOVE LOVE LOVE! I'm a college student and most professors assign readings that are available online now. I also have ADHD and highlighting (and color coding) are a must, so I make sure I understood what I read. …",{"reviewer":199,"reviewText":202},{"name":200,"avatarURL":201},"Zee Dean","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjV6NDfSVpshcj33Eo93zydENYioYz9rA1mTd2BYebSVxynoP1jRWg=s32","The PDF & Web Highlighter app is incredibly helpful and useful, especially for anyone who frequently works with online or PDF content. I use it regularly to highlight key information across various documents and websites, which makes reviewing and organizing important points …",{"reviewer":204,"reviewText":207},{"name":205,"avatarURL":206},"Inan","https:\u002F\u002Flh3.googleusercontent.com\u002Fa-\u002FALV-UjW_Sy77Shq2iJXYyrkkUM36Cf5n96hkT5p7-9Zhd9ySwRWOmqeP=s32","I've been using Web Highlights PDF & Web Hi for a while now, and it's become an essential tool for my research workflow. Highlighting key points on websites and PDFs is a breeze, and the ability to take notes and save them alongside the highlighted content is incredibly useful. …"]