ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
This commit is contained in:
Christopher Chedeau
2016-08-15 18:04:22 +01:00
committed by Dan Abramov
parent 48475787b4
commit 9a48b5ca7b
+2 -2
View File
@@ -132,8 +132,8 @@ ReactTestInstance.prototype.toJSON = function() {
var ReactTestMount = {
render: function(
nextElement: ReactElement
): ?ReactElement<any, any, any> {
nextElement: ReactElement<any>
): ReactTestInstance {
var nextWrappedElement = React.createElement(
TopLevelWrapper,
{ child: nextElement }