Added missing toReactComponent() method

I added the missing toReactComponent to index.js.

We want to use React and Typescript for a larger project at my employer, so I would very much like to help in the process of creating a stable typescript wrapper.

Great work so far!

I understand that this project is not "public" and supported yet, but it would be nice to generate some more helpful getting started information. I will look into that.