Which works in react, but plugging in preact-compat causes the component itself to be assigned to this.__domNode (because this.base is undefined), not the dom node it's expecting, and further down the line it errors.
Not really sure who's at fault here, but I figure if it works in React and not in Preact, something's up.
My react project uses react-click-outside for outside click detection. It does a rather idiosyncratic:
Which works in react, but plugging in
preact-compat
causes the component itself to be assigned tothis.__domNode
(becausethis.base
is undefined), not the dom node it's expecting, and further down the line it errors.Not really sure who's at fault here, but I figure if it works in React and not in Preact, something's up.