React fixes

We were missing some correct typings. This is a minor fix to the React typings.