This library provides a starter kit to create a web map application based on React Spatial.
- react
- redux
- react-router
- enzyme
- jest
- cypress
- react-spatial
- eslint with airbnb
- stylelint
- prettier
- sass
- Install:
yarn install
- Start:
yarn start
Publish as NPM package:
- Publish:
yarn publish:build
- Create a new component from another
yarn cp
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;