Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super()
this.state = {text: ''}
usabilla.initialize("YOUR_APP_ID_HERE")
usabilla.setDataMasking(usabilla.getDefaultDataMasks(), 'X');
var customVars = {"test": 1};
usabilla.setCustomVariables(customVars);
usabilla.setFormDidLoadSuccessfully((reminder) => console.log("successfull loading form: ", reminder));
usabilla.setFormDidFailLoading((reminder) => console.log("Error loading form: ", reminder));
usabilla.setFormDidClose((reminder) => console.log("Form closed: ", reminder));
usabilla.setCampaignDidClose((reminder) => console.log("Campaign closed: ",JSON.stringify(reminder)))
}