Use instance of an object in react

199
0
01-28-2019 09:35 PM
kawishabbas
New Contributor III

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]

})

0 Kudos
0 Replies