added lifecycle keys to 'defcomponent'.