Container
This is the class inherited from React.Component
. This is the base component of the Harmoware-VIS
library which updates settime
and animation frame
. Please output DOM with the render
method.
Examples
// using mapbox
import React from 'react';
import {
Container, connectToHarmowareVis, HarmoVisLayers, ...
} from 'harmoware-vis';
class App extends Container {
render() {
const { viewport, actions, ... } = this.props;
return (
<HarmoVisLayers
viewport={viewport} actions={actions}
mapboxApiAccessToken={ ... } layers={[ ... ]}
/>
);
}
}
export default connectToHarmowareVis(App);
Last updated
Was this helpful?