From 29f6c7e774d4f6bcfadd9f8eabefde7014beaf3d Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 24 Feb 2015 11:18:17 -0800 Subject: [PATCH] Fix comment to reflect the new (non-deprecated) way of accessing a class type. --- src/classic/element/ReactElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classic/element/ReactElement.js b/src/classic/element/ReactElement.js index c582f95a6a..5d03547c28 100644 --- a/src/classic/element/ReactElement.js +++ b/src/classic/element/ReactElement.js @@ -203,7 +203,7 @@ ReactElement.createElement = function(type, config, children) { ReactElement.createFactory = function(type) { var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be - // easily accessed on elements. E.g. .type === Foo.type. + // easily accessed on elements. E.g. `.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. // Legacy hook TODO: Warn if this is accessed