React-ace: PureComponent is only in React v16-alpha ?

Created on 3 Nov 2016  ·  3Comments  ·  Source: securingsincity/react-ace

Just updated, got errors about ace.js:29 Uncaught TypeError: Super expression must either be null or a function, not undefined

It looks like my version of React doesn't export PureComponent... but then I tried to find the version of React that shipped with it... https://github.com/facebook/react/blob/c8fbdac22717e91d1f1638a932eed3ce4cc39ff7/package.json#L4

I think React v16-alpha is a little edgy? One could just use a shallow-compare, or similar for now...

Most helpful comment

Reverted back to Component. too many issues were being created by using PureComponent.

All 3 comments

Encountered the same problem

i tried add "_PureComponent ? _PureComponent = _PureComponent : _PureComponent = null;" in ace.js ,it looks fine;

could ace team add the judge logic ?

Reverted back to Component. too many issues were being created by using PureComponent.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

levi0913 picture levi0913  ·  7Comments

nenadlukic picture nenadlukic  ·  6Comments

Yuanye picture Yuanye  ·  7Comments

henviso picture henviso  ·  7Comments

viridia picture viridia  ·  4Comments