<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can a web component be integrated into an app? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-a-web-component-be-integrated-into-an-app/m-p/1180674#M77629</link>
    <description>&lt;P&gt;I'm looking at&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16265"&gt;@MattDriscoll&lt;/a&gt;'s repo &lt;A href="https://github.com/driskull/2022-ds-building-geospatial-web-components/tree/main/geospatial-web-components-demo/src" target="_self"&gt;here&lt;/A&gt; from the 2022 dev summit, which I attended. I understand how to make a reusable web component (I'm using Stencil), but &lt;STRONG&gt;how can a web component be integrated into an app?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example, say I have a simple app that just shows a map. If I make a web component that shows a little box with a list of layers (just a hypothetical example), how do I import that web component into my app such that the list of layers shows up on top of the map? And how do I hook up communication between the web component and map?&lt;/P&gt;&lt;P&gt;I'm considering using React as a framework in the web component and/or app, but I'm not sure how that plays into either. Therefore&lt;STRONG&gt; I'd be interested in knowing how this is done with or without React.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using the latest ArcGIS JSAPI, TypeScript, and Vite. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 16:22:17 GMT</pubDate>
    <dc:creator>AndrewGilbert</dc:creator>
    <dc:date>2022-06-07T16:22:17Z</dc:date>
    <item>
      <title>How can a web component be integrated into an app?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-a-web-component-be-integrated-into-an-app/m-p/1180674#M77629</link>
      <description>&lt;P&gt;I'm looking at&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16265"&gt;@MattDriscoll&lt;/a&gt;'s repo &lt;A href="https://github.com/driskull/2022-ds-building-geospatial-web-components/tree/main/geospatial-web-components-demo/src" target="_self"&gt;here&lt;/A&gt; from the 2022 dev summit, which I attended. I understand how to make a reusable web component (I'm using Stencil), but &lt;STRONG&gt;how can a web component be integrated into an app?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example, say I have a simple app that just shows a map. If I make a web component that shows a little box with a list of layers (just a hypothetical example), how do I import that web component into my app such that the list of layers shows up on top of the map? And how do I hook up communication between the web component and map?&lt;/P&gt;&lt;P&gt;I'm considering using React as a framework in the web component and/or app, but I'm not sure how that plays into either. Therefore&lt;STRONG&gt; I'd be interested in knowing how this is done with or without React.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using the latest ArcGIS JSAPI, TypeScript, and Vite. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-a-web-component-be-integrated-into-an-app/m-p/1180674#M77629</guid>
      <dc:creator>AndrewGilbert</dc:creator>
      <dc:date>2022-06-07T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can a web component be integrated into an app?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-a-web-component-be-integrated-into-an-app/m-p/1180690#M77631</link>
      <description>&lt;P&gt;Here is an app that uses calcite-components and Vue to help give you an idea.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/nearby-app" target="_blank"&gt;https://github.com/odoe/nearby-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a Frameworks integration section to the doc too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/calcite-design-system/frameworks/" target="_blank"&gt;https://developers.arcgis.com/calcite-design-system/frameworks/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a section on React, using the calcite-components-react, which is a build that has React components to wrap calcite-components, makes it a little easier to pass props and add listeners to the components.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-a-web-component-be-integrated-into-an-app/m-p/1180690#M77631</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-06-07T16:40:21Z</dc:date>
    </item>
  </channel>
</rss>

