Wrapper to make react play nicely with typescript