Added missing toReactComponent() method