Skip to content

geops/react-spatial-starter

Repository files navigation

geOps react-spatial Starter

npm code style: prettier

This library provides a starter kit to create a web map application based on React Spatial.

Technologies

  • react
  • redux
  • react-router
  • enzyme
  • jest
  • cypress
  • react-spatial
  • eslint with airbnb
  • stylelint
  • prettier
  • sass

Getting Started

  • Install:
yarn install
  • Start:
yarn start

Publish as NPM package:

  • Publish:
yarn publish:build
  • Create a new component from another
yarn cp

Use as ES6 module

When this app is published as npm package, it can be integrated easily in other applications, as ES6 module:

  • Install
yarn install <this-app-package>
  • In your App.js file:
import React, { Component } from 'react';
import thisApp from '<this-app-package>';

class App extends Component {
  render() {
    return (
      <div className="App">
        <thisApp
          props1={props1}
          props2={props2}
        />
      </div>
    );
  }
}

export default App;