<?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 Re: Moving Typescript application to react + Typescript with ArcGIS JS API 4.18 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041202#M72238</link>
    <description>&lt;P&gt;The ref.current from useRef can be Element or undefined. Try to do something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (mapRef.current) {
  // mapRef.current typing should now be inferred as HTMLDivElement
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all else fails you can say "as HTMLDivElement"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find framework samples on github now.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using the ESM build of&amp;nbsp;&lt;EM&gt;@Anonymous User/core&lt;/EM&gt; doesn't really require framework specific guides anymore. You just integrate it pretty much how you would any third-party library.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 20:05:56 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-03-26T20:05:56Z</dc:date>
    <item>
      <title>Moving Typescript application to react + Typescript with ArcGIS JS API 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041155#M72236</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;The support documents for frameworks in ArcGIS JS API present before are not found now wondering if they will be added? Looking for sample project to solve below issues&lt;/P&gt;&lt;P&gt;How to use import esri = ___esri in react + Typescript with ArcGIS JS API 4.18&lt;/P&gt;&lt;P&gt;Having below issue with View container able to fix it by adding as any. Looking for any better way?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-03-26 at 18.26.53.png" style="width: 589px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9484i11DB84A1F0933E71/image-dimensions/589x345?v=v2" width="589" height="345" role="button" title="Screenshot 2021-03-26 at 18.26.53.png" alt="Screenshot 2021-03-26 at 18.26.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041155#M72236</guid>
      <dc:creator>divyabathina</dc:creator>
      <dc:date>2021-03-26T18:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Typescript application to react + Typescript with ArcGIS JS API 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041202#M72238</link>
      <description>&lt;P&gt;The ref.current from useRef can be Element or undefined. Try to do something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (mapRef.current) {
  // mapRef.current typing should now be inferred as HTMLDivElement
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all else fails you can say "as HTMLDivElement"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find framework samples on github now.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using the ESM build of&amp;nbsp;&lt;EM&gt;@Anonymous User/core&lt;/EM&gt; doesn't really require framework specific guides anymore. You just integrate it pretty much how you would any third-party library.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 20:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041202#M72238</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-03-26T20:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Typescript application to react + Typescript with ArcGIS JS API 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041630#M72253</link>
      <description>&lt;P&gt;Hi Rene,&lt;/P&gt;&lt;P&gt;Thanks for looking into this issue. Yes we have followed the same sample link which was useful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to do like below but still have issue and ui code is&amp;nbsp;&lt;EM&gt;&amp;lt;div&amp;nbsp;className="mapDiv"&amp;nbsp;ref={mapDiv}&amp;gt;&amp;lt;/div&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaBathina1_1-1617037719446.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9579i55CF297295E34373/image-size/large?v=v2&amp;amp;px=999" role="button" title="DivyaBathina1_1-1617037719446.png" alt="DivyaBathina1_1-1617037719446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Divya&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041630#M72253</guid>
      <dc:creator>DivyaBathina1</dc:creator>
      <dc:date>2021-03-29T17:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Typescript application to react + Typescript with ArcGIS JS API 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041638#M72256</link>
      <description>&lt;P&gt;mapDiv.current as HTMLDivElement&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 17:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1041638#M72256</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-03-29T17:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Typescript application to react + Typescript with ArcGIS JS API 4.18</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1044226#M72371</link>
      <description>&lt;P&gt;its working now!!Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 22:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/moving-typescript-application-to-react-typescript/m-p/1044226#M72371</guid>
      <dc:creator>divyabathina</dc:creator>
      <dc:date>2021-04-07T22:18:44Z</dc:date>
    </item>
  </channel>
</rss>

