Skip to content

Commit

Permalink
Remove React.isValidElement shim
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 1, 2019
1 parent 2489b5b commit 30ba43b
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 155 deletions.
18 changes: 18 additions & 0 deletions lib/reactTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* --------------------
* react-async-ssr module
* Capture internal React symbols
* ------------------*/

'use strict';

// Modules
const React = require('react');

// Exports
const suspenseElement = React.createElement(React.Suspense);

module.exports = {
REACT_ELEMENT_TYPE: suspenseElement.$$typeof,
REACT_SUSPENSE_TYPE: suspenseElement.type,
REACT_FRAGMENT_TYPE: React.createElement(React.Fragment).type
};
95 changes: 0 additions & 95 deletions lib/renderCapture.js

This file was deleted.

Loading

0 comments on commit 30ba43b

Please sign in to comment.