<?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 Unable to use react library that was transpiled using &amp;quot;react-jsx&amp;quot; in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-use-react-library-that-was-transpiled/m-p/1264720#M6384</link>
    <description>&lt;P&gt;I am trying to consume a package that imports "react/jsx-runtime".&amp;nbsp; The webpack config that compiles the custom widgets doesn't catch imports to react subdirectories and causes a second instance of react to be loaded at runtime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A similar issue can be seen if a package uses react/react-dom v18+.&amp;nbsp; Importing react-dom/client will load a new instance of react-dom instead of the one that is loaded via jimu-core.&amp;nbsp; Adding "react/" and "react-dom/" to the list of partialMatchPackages in the webpack config should fix the issue.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 21:38:47 GMT</pubDate>
    <dc:creator>MichaelKowal</dc:creator>
    <dc:date>2023-03-06T21:38:47Z</dc:date>
    <item>
      <title>Unable to use react library that was transpiled using "react-jsx"</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-use-react-library-that-was-transpiled/m-p/1264720#M6384</link>
      <description>&lt;P&gt;I am trying to consume a package that imports "react/jsx-runtime".&amp;nbsp; The webpack config that compiles the custom widgets doesn't catch imports to react subdirectories and causes a second instance of react to be loaded at runtime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A similar issue can be seen if a package uses react/react-dom v18+.&amp;nbsp; Importing react-dom/client will load a new instance of react-dom instead of the one that is loaded via jimu-core.&amp;nbsp; Adding "react/" and "react-dom/" to the list of partialMatchPackages in the webpack config should fix the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 21:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-use-react-library-that-was-transpiled/m-p/1264720#M6384</guid>
      <dc:creator>MichaelKowal</dc:creator>
      <dc:date>2023-03-06T21:38:47Z</dc:date>
    </item>
  </channel>
</rss>

