seek-oss / playroom

Design with JSX, powered by your own component library.
MIT License
4.45k stars 183 forks source link

React 18 support #261

Closed Moranilt closed 1 year ago

Moranilt commented 2 years ago

Playroom does not support React 18 dependencies. It would be greate to add this support.

michaeltaranto commented 2 years ago

Yep, started on this a few weeks ago but had to park for a bit. Was playing around with the approach, trying to avoid config if possible.

I'll loop back.

Moranilt commented 2 years ago

@michaeltaranto Greate news! Thank you!

mogularpb commented 1 year ago

any news on this? React is no longer required to be imported into components, and in fact recent typescript linting changes mean that you will get an error when you are importing react. However this then breaks playroom.

michaeltaranto commented 1 year ago

Picked this up again between tasks and thought i'd share an update:

Really want to get this work through, but our effort is definitely focused elsewhere in our ecosystem due to company priorities. I'll try to keep this issue updated.

michaeltaranto commented 1 year ago

Actually, pivoted on this one. Given React still lets you use legacy lifecycle APIs, we have taken in a copy of the editor as a temporary workaround, while we look at upgrading to CodeMirror 6 separately.

This allows us to support React 18 (with backwards compatibility and no config/api change).

https://github.com/seek-oss/playroom/pull/265