[cookbook] Recipe: Setting the Attributes of a Component's Element

I’ve fleshed out this recipe with an example and noted that readers should consider in relation to `bindAttr`.