`component` can be an array too.