-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to React 16 #418
Comments
https://twitter.com/japgolly/status/933118294705422336
I envision 3 outcomes here.
|
And to those of you reading this because you've subscribed because you love the project, you're probably disappointed and I'm sorry for that. It will definitely happen, externally, it's just a matter of when. |
How can we contribute (financially) ?
… On Nov 21, 2017, at 6:53 PM, David Barri ***@***.***> wrote:
https://twitter.com/japgolly/status/933118294705422336 <https://twitter.com/japgolly/status/933118294705422336>
Would anyone be interested in sponsoring me to update #scalajs-#react to React 16?
Context: I've never been paid any of my time on OSS; all of my OSS work I've done at the cost of other paying work. React16 is non-trivial and I doubt I'll be able to do it for free for a while.
I envision 3 outcomes here.
I get sponsored and add React 16 support.
Community member(s) contribute React 16 support (understanding that the review process might be a little slow).
We all wait until next year and likely Q2/Q3 at that.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#418 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AIIsQScTaJ35_nJ0s_sB1dIh206pr7e3ks5s42JdgaJpZM4P0yL4>.
|
as mentioned in Twitter, I would love to contribute to making this happen. Thanks for the awesome work! |
@japgolly I would like to donate too. Is this set up somewhere already? |
Hi all. I've setup a patreon page. If you would like to contribute and are able, I'd really appreciate your support. If you know any one else that enjoys this project, my other OSS libraries, or even my programming blog enough to support me and could reach out to them, that would be tremendously helpful too. Thank you! 🙇♂️ |
BTW I'm using the existing version on 16, so I guess this is about adding new features like essentially returning VdomArray instead of VdomElement? Or am I missing a lot? |
@nafg yes, exactly. I need to go through all the React 16.x changelogs and find anything and everything that requires a change here. So adding new features like the portal stuff, adding new VDOM, updating the type-system for new logic/rules (like returning VdomArray from render), etc. But because React 16 is backwards-compatible with React 15, so too will scalajs-react work with React 16 in a React 15 way. |
Thanks for the explanation :) |
no worries :)
…On 17 December 2017 at 17:48, nafg ***@***.***> wrote:
Thanks for the explanation :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMYt-PIvML1v6T4jtJPyG3ffR-2kNQsks5tBLlagaJpZM4P0yL4>
.
|
Ok these are the changes required for full React 16 support:
|
Wow! Thanks 👍 looking forward to use it |
this is awesome! |
Cheers! Not long to go |
Very exciting! Not to make life more difficult, but note https://medium.com/@baphemot/whats-new-in-react-16-3-d2c9b7b6193b -- in particular,
|
Thanks @nafg. A lifecycle method will only be a 15min change so I'm not too worried about that. I think I'll get 1.2.0 out supporting React 16.2 ASAP, then follow up with a compatible 1.2.1 for React 16.3 when it's released. |
Thanks. Just make sure you can do it as Props=>State=>State, not just
Props=>State.
…On Sun, Mar 4, 2018, 4:55 AM David Barri ***@***.***> wrote:
Thanks @nafg <https://github.com/nafg>. A lifecycle method will only be a
15min change so I'm not too worried about that. I think I'll get 1.2.0 out
supporting React 16.2 ASAP, then follow up with a compatible 1.2.1 for
React 16.3 when it's released.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGAUDeaEaoZI9PhQlBfcfCQ0XNfKQBpks5ta7oLgaJpZM4P0yL4>
.
|
This is going to be non-trivial. Hopefully not a big deal either.
For those salivating and pining in anticipating for this, I hope to get it done this month but no promises (I have a family to support).
Also it will come out in v1.2.0. Before then there'll be a minor release still on React 15.
Edit: Not committing to a timeline but these are the changes:
Changes & Progress
EmptyVdom
(Scala version of above)Option[_]
(Scala version of above)ReactDOM.createPortal
componentDidCatch
react-addons-test-utils
is nowreact-dom/test-utils
perf
doesn't work with 16 - no replacement yetreact-addons-css-transition-group
is nowreact-transition-group
, a separate libcreateClass
on
to be passed on to elements facebook/react#11153ReactDOM
getDOMNode
should now returnElement | Text
instead of justElement
import 'raf/polyfill'
Externalised
setState
with null no longer triggers an update.The text was updated successfully, but these errors were encountered: