@samitouri / QOS-React-2 / commits / 29f6c7e774

Fix comment to reflect the new (non-deprecated) way of accessing a class type.

Jim committed Feb 24, 2015 at 11:18 UTC 29f6c7e774d4f6bcfadd9f8eabefde7014beaf3d
1 file changed +1 -1
src/classic/element/ReactElement.js
+1 -1
@@ -203,7 +203,7 @@ ReactElement.createElement = function(type, config, children) {
203 ReactElement.createFactory = function(type) {
204 var factory = ReactElement.createElement.bind(null, type);
205 // Expose the type on the factory and the prototype so that it can be
206 - // easily accessed on elements. E.g. <Foo />.type === Foo.type.
206 + // easily accessed on elements. E.g. `<Foo />.type === Foo`.
207 // This should not be named `constructor` since this may not be the function
208 // that created the element, and it may not even be a constructor.
209 // Legacy hook TODO: Warn if this is accessed