Add Switch component
1. Add create static method on Component to instantiate a component.
2. Add hooks before connection