Publishing Calculators to your front-end JavaScript framework (React, Vue, Angular, etc)

With our single line of JavaScript, you can easily publish calculators on any page of your website.

Q: How do I publish my calculators to a JavaScript Framework?

A: For loading a script file dynamically using JavaScript, the basic steps are to create a virtual script tag and manually append it to the DOM. 

  const script = document.createElement('script');

  script.src = "";
  script.async = true;



For calculators, the remaining step is to add the `div` tag to the html wherever on the page it's designed to go. If you’re installing a widget, no nee to worry about the div, it will appear on its own based on the targeting settings. 

The full publishing FAQ and instructions can be found here: