The sample projects in this directory integrate the @arcgis/core build of the ArcGIS API for JavaScript with various frameworks, module bundlers and build tools. @arcgis/core
is installed locally using NPM.
For TypeScript users, the type definitions are included with the API. There is no need for a separate install.
For additional information, see the Build with ES modules Guide topic in the SDK.
Step 1 - Run npm install
in a project directory and then start adding ArcGIS API for JavaScript functionality.
Step 2 Configure CSS. Here's a React example:
index.js
@import "https://js.arcgis.com/4.21/@arcgis/core/assets/esri/themes/light/main.css";