Build a component that has dependencies