Render a Component
The render function for an already created component can be called at any time after the affirm.jsReady()
function.
The render function accepts the CSS selector for the DOM element where you want to display the promotional messaging. Ideally, use an id
for a single element as the CSS selector. The render function uses document.querySelector
to locate the element on the page, so if you pass a class, only the first matching element will be transformed into the rendered component.
Updated 26 days ago