Let component config be a function.