<?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: Esri elements and react js in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263478#M24425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I understand much better now.&lt;/P&gt;&lt;P&gt;I think your struggling with a very technical issue with the tokens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we take that out of the equation by using some sample map services you would be able to place your map in your react code with no issues. Any of the basic examples would get you there.&lt;/P&gt;&lt;P&gt;Normal solution is to trigger your map init with the document load or your app load methods. Its in your MyMap.js code where you would myMap = new Map(....) and load the layers.&lt;/P&gt;&lt;P&gt;I suspect everything you were trying before failed because of the token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like the services you want to access are protected with tokens. An easy way to test would be to get a token manually with the HTML page and place that token in your map layers url directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also handle the token by using a proxy. There are several threads here on how to set that up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 18:47:38 GMT</pubDate>
    <dc:creator>JordanBaumgardner</dc:creator>
    <dc:date>2016-03-09T18:47:38Z</dc:date>
    <item>
      <title>Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263475#M24422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a little bit confused in how to integrate the arcgis api in my project.&lt;/P&gt;&lt;P&gt;I want to make a query to a servicelayer after the sucess ajax response, but i dont know how to integrate the api.&lt;/P&gt;&lt;P&gt;I am using react and reactdom, node, webpack, gulp, and I already installed the api in the server with the instructions provided by esri.&lt;/P&gt;&lt;P&gt;Can somebody guides me providing any example?&lt;/P&gt;&lt;P&gt;Thanks in advice &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My working directory is:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="190375" alt="directory_file.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190375_directory_file.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in my main.js file is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import React from 'react';
import ReactDOM from 'react-dom';




function genericLogin(genericAccount, username, password){
&amp;nbsp; var url = "myarcgis/arcgis/tokens/generateToken";


&amp;nbsp; console.log(genericAccount);
&amp;nbsp; console.log(username, password);

//Part 1, accessing with a generic account to get the token
&amp;nbsp; jQuery.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'POST',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: url,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username: genericAccount.username,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password: genericAccount.password,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client: genericAccount.client,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format: 'json'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; success: (success) =&amp;gt; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Part 2: when u get the token, make a query to the service layer and see if the user who tries to log in has access , if has it - &amp;gt;go to the next page.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Success &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; : The generic account is working, verifying the user permissions... " );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(success);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error: (error) =&amp;gt; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Error &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt; : The main account is having some issue, please notify to the administrator ");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });


&amp;nbsp; console.log('done');
}


class LoginApp extends React.Component {
&amp;nbsp; constructor(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; super();
&amp;nbsp;&amp;nbsp;&amp;nbsp; this.onClick = this.onClick.bind(this);
&amp;nbsp; }


&amp;nbsp; onClick(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; var genericAccount = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username: 'myusername',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password:'mypass',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client: 'requestip'
&amp;nbsp;&amp;nbsp;&amp;nbsp; };


&amp;nbsp;&amp;nbsp;&amp;nbsp; var userValue = this.refs.username.value;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var passValue = this.refs.password.value;


&amp;nbsp;&amp;nbsp;&amp;nbsp; genericLogin(genericAccount, userValue, passValue);
&amp;nbsp; }


&amp;nbsp; render(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; return (
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div className="wrapper"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img className="logo" src="images/mylogo.png" /&amp;gt;


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div className="login"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input className="login__input" ref="username" type="text" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input className="login__input" ref="password" type="password" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input className="login__submit" type="submit" onClick={this.onClick} /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div className="footer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img className="image-chq" src="images/chq_i.png" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p className="footer__p"&amp;gt;some info&amp;lt;/p&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p className="footer__p"&amp;gt;more info&amp;lt;/p&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h6 className="footer__h6"&amp;gt;address&amp;lt;/h6&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; );
&amp;nbsp; }
}


ReactDOM.render(&amp;lt;LoginApp /&amp;gt;, document.getElementById('myLogin'));&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My index.html&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html lang="es"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta charset="utf-8"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;React JSAPI&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/esri/css/esri.css" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="css/login.css"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section id="myLogin"&amp;gt;&amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="arcgis_js_api/library/3.16/3.16/init.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="static/js/vendor/jquery-2.2.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="bundle.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263475#M24422</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-11T12:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263476#M24423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to react, but what you have there looks spot on to me. What is it doing? The token service is just a straight up rest call, and just eyeballing it - it looks good to me. What is the response telling you? Or is not even making the call?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 15:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263476#M24423</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2016-03-09T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263477#M24424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well im new trying to learn react. And i wasnt sure on for example, how to call the esri objects like : map, queries, querytasks, etc from the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figure out asking to one of my friends who knows react on how to integrate the api and i change the code for ajax response to show for example how to put the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;jQuery.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type: 'POST',
&amp;nbsp;&amp;nbsp;&amp;nbsp; url: url,
&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username: genericAccount.username,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password: genericAccount.password,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client: genericAccount.client,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format: 'json'
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; success: (success) =&amp;gt; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('here i need to call to a function for requesting service access');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.Map('myMapForTest', {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-118, 34.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 8,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; error: (error) =&amp;gt; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("sumthing happen ):");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });


&amp;nbsp; console.log('done');
}&lt;/PRE&gt;&lt;P&gt;And in the html i just add a section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section id="myMapForTest"&amp;gt;&amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will see if the other esri elements like query , querytask , featurelayer , etc works like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263477#M24424</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-11T12:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263478#M24425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I understand much better now.&lt;/P&gt;&lt;P&gt;I think your struggling with a very technical issue with the tokens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we take that out of the equation by using some sample map services you would be able to place your map in your react code with no issues. Any of the basic examples would get you there.&lt;/P&gt;&lt;P&gt;Normal solution is to trigger your map init with the document load or your app load methods. Its in your MyMap.js code where you would myMap = new Map(....) and load the layers.&lt;/P&gt;&lt;P&gt;I suspect everything you were trying before failed because of the token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like the services you want to access are protected with tokens. An easy way to test would be to get a token manually with the HTML page and place that token in your map layers url directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also handle the token by using a proxy. There are several threads here on how to set that up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263478#M24425</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2016-03-09T18:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263479#M24426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i will use the token cuz i already know that u can put them in the queries or layers when u want to load them, so not big deal with it.&lt;/P&gt;&lt;P&gt;Thanks for ur help and guidance &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263479#M24426</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-03-09T19:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Esri elements and react js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263480#M24427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like you've been able to answer your own question, but I want to mention that there&amp;nbsp;are now a few repositories on GitHub that demonstrate good&amp;nbsp;patterns for using the ArcGIS API in React applications built with webpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Robert-W/esri-redux"&gt;https://github.com/Robert-W/esri-redux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/davetimmins/create-react-app-esri-loader/"&gt;https://github.com/davetimmins/create-react-app-esri-loader/&lt;/A&gt;&lt;A href="https://github.com/tomwayson/esri-react-router-example"&gt;https://github.com/tomwayson/esri-react-router-example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/davetimmins/create-react-app-esri-loader/"&gt;https://github.com/davetimmins/create-react-app-esri-loader/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/davetimmins/create-react-app-arcgis"&gt;https://github.com/davetimmins/create-react-app-arcgis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike the example code shown in this question, these&amp;nbsp;repositories don't rely on using the deprecated `esri`&amp;nbsp;global, which does not work w/ v4.x of the JSAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to understand more about how the patterns in those repositories work, I've written &lt;A href="http://tomwayson.com/2016/11/27/using-the-arcgis-api-for-javascript-in-applications-built-with-webpack/"&gt;a blog post on using the ArcGIS API in applications built with webpack&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 06:20:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-elements-and-react-js/m-p/263480#M24427</guid>
      <dc:creator>TomWayson</dc:creator>
      <dc:date>2016-12-02T06:20:33Z</dc:date>
    </item>
  </channel>
</rss>

