preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

Add React.__spread support #408

Closed jackpopp closed 7 years ago

jackpopp commented 7 years ago

Hey I'm working on an older react codebase that makes use React.__spread which is basically just Object.assign.

Currently I get

TypeError: React.__spread is not a function

when using preact-compat, this should fix the issue.

gnarf commented 7 years ago

We already had an extend function in preact-compat that was pretty much Object.assign / __spread -- I submitted #407 to use that for this.