Skip to content

Commit

Permalink
fix(preact): Remove fallback for PureComponent since it's now support…
Browse files Browse the repository at this point in the history
…ed by preact-compat

As a bonus, this fixes the warning generated when running tests:
"export 'PureComponent' (imported as '_React_') was not found in 'react'
preactjs/preact-compat#139
  • Loading branch information
szafranek committed Aug 29, 2017
1 parent 0f1d544 commit 57b28f2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as types from 'prop-types';
export const React = {
createElement: _React_.createElement || _React_.h
};
export const PureComponent = _React_.PureComponent || _React_.Component;
export const PropTypes = types;
export const render = ReactDOM.render;

Expand Down

0 comments on commit 57b28f2

Please sign in to comment.