Render a Component
The render function on an already created component can be called any time after affirm.jsReady()
.
The render function takes as an argument the CSS selector for the DOM element in which you would like to render the promotional messaging. Ideally, this CSS selector should be an id
for a single element. The render function uses document.querySelecor
to find the element on the page, so if a class
is passed in only the first found element would be transformed into the rendered component.
Updated 10 days ago