1.2. Install from NPM
December 1, 2021 ยท View on GitHub
Theory
Installing dependencies via npm is recommended when developing complex web applications using build systems such as webpack.
Instal packages
npm i -S @nextgis/[package]
yarn add @nextgis/[package]
Usage
Import the [package] in the project modules:
import Package from '@nextgis/[package]';
// or
import { Component, utility } from '@nextgis/[package]';
const package = new Package(options);
Practice
To run this example, you need to execute these commands in the terminal:
npm i
npm start
Open http://localhost:8080.
LAUNCH in the codesandbox.io.