<?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 to compile a widget integrated with React in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-compile-a-widget-integrated-with-react/m-p/328174#M30302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created React component which shows data retrieved from DB via API (The API is not ArcGIS API for JavaScript, just for searching data) and it works fine.&lt;/P&gt;&lt;P&gt;Then I want to replace the component as a widget on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the widget by extending widget class by following references about widget development.&lt;/P&gt;&lt;P&gt;Then I added the component to the widget and compiled the widget.&lt;/P&gt;&lt;P&gt;However it throw an error when I add the widget to the map.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that the app references React module under dojo (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.6%2Fdojo%2Freact%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.6/dojo/react/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I think I need to set some options when I compile the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to React, TypeScript and widget development.&lt;/P&gt;&lt;P&gt;So I probably miss something very basic, but it would be great if I get infromation about how to use React component in widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;I have already checked the React sample Esri and odoe provided, but it does not follow widget development workflow and it uses compiler library. So unfortunately it does not help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 04:28:27 GMT</pubDate>
    <dc:creator>AyakoSUZUKI</dc:creator>
    <dc:date>2018-03-01T04:28:27Z</dc:date>
    <item>
      <title>How to compile a widget integrated with React</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-compile-a-widget-integrated-with-react/m-p/328174#M30302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created React component which shows data retrieved from DB via API (The API is not ArcGIS API for JavaScript, just for searching data) and it works fine.&lt;/P&gt;&lt;P&gt;Then I want to replace the component as a widget on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the widget by extending widget class by following references about widget development.&lt;/P&gt;&lt;P&gt;Then I added the component to the widget and compiled the widget.&lt;/P&gt;&lt;P&gt;However it throw an error when I add the widget to the map.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that the app references React module under dojo (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.6%2Fdojo%2Freact%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.6/dojo/react/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I think I need to set some options when I compile the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to React, TypeScript and widget development.&lt;/P&gt;&lt;P&gt;So I probably miss something very basic, but it would be great if I get infromation about how to use React component in widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;I have already checked the React sample Esri and odoe provided, but it does not follow widget development workflow and it uses compiler library. So unfortunately it does not help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 04:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-compile-a-widget-integrated-with-react/m-p/328174#M30302</guid>
      <dc:creator>AyakoSUZUKI</dc:creator>
      <dc:date>2018-03-01T04:28:27Z</dc:date>
    </item>
  </channel>
</rss>

