We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c8cbca commit 20e5a95Copy full SHA for 20e5a95
src/isomorphic/classic/element/ReactElement.js
@@ -30,8 +30,10 @@ var RESERVED_PROPS = {
30
};
31
32
/**
33
- * Base constructor for all React elements. This is only used to make this
34
- * work with a dynamic instanceof check. Nothing should live on this prototype.
+ * Factory method to create a new React element. This no longer adheres to
+ * the class pattern, so do not use new to call it. Also, no instanceof check
35
+ * will work. Instead test $$typeof field against Symbol.for('react.element') to check
36
+ * if something is a React Element.
37
*
38
* @param {*} type
39
* @param {*} key
0 commit comments