Fix flow (#7499)
Fix flow (#7499)

ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
(cherry picked from commit 9a48b5ca7b007c850054fef7a7439f06b3e10f80)

with-git/react,with-git/react,with-git/react,with-git/react,with-git/react,with-git/react,with-git/react