When to use a directive: Need access to the DOM Need to keep state between renders How to write a directive: TBD See also: https://github.com/Polymer/lit-html/blob/master/src/lib/directive.ts#L29