Initialization

For instructions on how to initialize the widget via CDN, contact us at hello@econans.com.

  1. Import the widget
import { EconansGreenHousing } from "@econans/green-housing";
  1. Provide a HTML element for the widget to mount in
<div id="econans-green-housing"></div>
  1. Run the mount() function with the selector of the HTML element as an argument
EconansGreenHousing.mount("#econans-green-housing");
  1. (Optional) Provide a custom configuration object as the second argument to the mount() function
EconansGreenHousing.mount("#econans-green-housing", {
  exampleParameter: "Example value",
});

See Configuration for details about what parameters that can be applied.