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.
Solved! Go to Solution.
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
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.