Skip to content

Commit

Permalink
Include $$typeof on inlined React elements
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed Sep 10, 2015
1 parent 436ba9b commit e0871c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel/src/transformation/file/index.js
Expand Up @@ -92,6 +92,7 @@ export default class File {
"temporal-undefined",
"temporal-assert-defined",
"self-global",
"typeof-react-element",
"default-props",
"instanceof",

Expand Down
@@ -0,0 +1 @@
(typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) || 0xeac7
Expand Up @@ -61,6 +61,7 @@ export var visitor = {
}

// metadata
pushElemProp("$$typeof", file.addHelper("typeof-react-element"));
pushElemProp("type", type);
pushElemProp("ref", t.literal(null));

Expand Down

0 comments on commit e0871c9

Please sign in to comment.