Editor generated event handlers or direct coding (e.g.,.onClick()

Wix has two ways of creating event handlers: by using the Editor to generate an “export function” code snippet, or by allowing you to code your own event handler using the methods of the element.

Is there a difference between the two methods? Is one more efficient than the other? What do folks prefer to use?

OFFICE