Converting to React JS component

2109
2
Jump to solution
01-19-2022 01:53 AM
MariaArockiyaStephenRaj
New Contributor II

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. 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

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

View solution in original post

2 Replies
ReneRubalcava
Frequent Contributor

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

MariaArockiyaStephenRaj
New Contributor II

Thank you! ReneRubalcava.

0 Kudos