maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Removing "resize-detector" html element. #59

Closed Fleuv closed 5 years ago

Fleuv commented 5 years ago

Hello,

Is it possible to remove the <div> or whatever nodeType was specified?

maslianok commented 5 years ago

Hi, @Fleuv

It's a very good question! I wanted to immediately say 'no', but now I see that we can try to remove this element... We use it only for detecting a parentElement and I think we can rewrite this logic.

Thanks for the question. I would appreciate if you can help me with this. Otherwise, I'll be able to work on this in 1-2 weeks.

maslianok commented 5 years ago

@Fleuv extra elements were removed for all render types except "Callback Pattern". Please update to v4.