From 09f1d0498182ef81ece81c655f006f60277e5fcb Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Sun, 19 Oct 2014 15:51:15 -0700 Subject: [PATCH] Make ReactTextComponent properly injectable ReactTextComponent's implementation is DOM-specific; instead of flattenChildren creating the ReactTextComponent instances, ReactNativeComponent now takes care of having ReactTextComponent injected and creating the component instance. I also renamed ReactTextComponent to ReactDOMTextComponent and moved it to browser/ui/ where it belongs. ReactDOMTextComponent no longer inherits directly from ReactComponent and instead implements construct and {mount,receive,unmount}Component directly. This diff removes `ReactTestUtils.isTextComponent` which should have previously never returned true when using public APIs. Test Plan: jest, use ballmer-peak example. --- docs/10.4-test-utils.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/10.4-test-utils.md b/docs/10.4-test-utils.md index 9c17f333..001f9144 100644 --- a/docs/10.4-test-utils.md +++ b/docs/10.4-test-utils.md @@ -75,14 +75,6 @@ boolean isCompositeComponentWithType(ReactComponent instance, function component Returns true if `instance` is a composite component (created with `React.createClass()`) whose type is of a React `componentClass`. -### isTextComponent - -```javascript -boolean isTextComponent(ReactComponent instance) -``` - -Returns true if `instance` is a plain text component. - ### findAllInRenderedTree ```javascript