Hi , I have created some web application with JavaScript API. I wanted to convert into React JS component. Does anyone have idea to convert AMD modules to ESM modules. The scripts are developed with AMD modules. I don't have a experience with React JS. I attached the script.
This isn't as simple as converting from AMD to ESM. If you want to convert this to a React component, you'll need to learn the basics of React.
FreecodeCamp is a good resource.
https://www.freecodecamp.org/news/react-tutorial-build-a-project/
egghead has some free videos as well. some of them are a little dated, but the basics are the basics.
https://egghead.io/q/react?access_state=free
We also have a React sample using ArcGIS JSAPI on github. It doesn't teach you React, but provides a start of how you can integrate React with the JSAPI.
https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app
Thank you! ReneRubalcava.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.