Hello every one. Can any one help me i am new in react and use arcgis api with react app. i have a problem to use this code in react. kindly check attached file.
ComponentDidMount(){
const layer = new Graphiclayer()
}
i want to use layer in map object(main file).
let map = new Map({
basemap: 'satellite',
layers:[layer]
})