NervJS / nerv

A blazing fast React alternative, compatible with IE8 and React 16.
https://nerv.aotu.io
MIT License
5.43k stars 267 forks source link

Provide .isReactComponent #43

Open lipp opened 6 years ago

lipp commented 6 years ago

React flags components with .isReactComponent.

https://github.com/facebook/react/search?utf8=%E2%9C%93&q=isreactcomponent&type=

Next.js (and maybe others) rely on that: https://github.com/zeit/next.js/blob/a32b22bb2d07c2959d65e11448098988fb1a721a/server/render.js#L102

Thus nerv can't be used with next.js right now: https://github.com/zeit/next.js/issues/3868

yuche commented 6 years ago

Nerv has the isReactComponent in component instance. A simple reproduce would be much helpful. Thank you.

ghost commented 6 years ago

Still have the same issue here with nextjs, an example repository would be: https://github.com/gpolyn/nextjs-google-map-react/tree/nerv

bkniffler commented 6 years ago

Me too, neither nextjs (as provided by @etiennemtl) nor react-lifecycle-comp (https://github.com/reactjs/react-lifecycles-compat/issues/28), used by popular libraries like rechart, work :(