software-mansion / react-freeze

Prevent React component subtrees from rendering.
MIT License
1.55k stars 34 forks source link

Can support React v16.6.3+ probably? #14

Open CJY0208 opened 2 years ago

CJY0208 commented 2 years ago

Hi!

Is there any things to prove that react-freeze only support react 17+?

I made a demo with react 16.6.3 and it also works well

I am trying to improve react-activation`s performance (feature like <keep-alive /> in vue) using react-freeze

react-activation support react 16+ but react-freeze require 17+

https://github.com/software-mansion/react-freeze/blob/738e9c0f7fcde97cff05950c368e77888e72d346/package.json#L31-L33

Is there any possibility to support react 16.6.3+?

CJY0208 commented 2 years ago

version below 16.6.3 will not work properly