Skip to content
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

LIBWEB-49: Update react and remove react deprecations #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kennylindley
Copy link

This project is written in LiveScript, we may have to talk about it.

This is also not able to run on CI, because I did not update GULP, which uses node 8. I also removed examples, which have react deprecations, but I did not want to change it.

The deprecations that I addressed are as follows:

  • createFactory is deprecated. React recommends converting to JSX or using createElement. Because this is LiveScript, I opted for createElement. This also meant that I had to remove the react-dom-factories package, which uses createFactory under the covers.
  • componentWillReceiveProps is deprecated. These should be refactored to use componentDidUpdate.
  • Using refs without React.createRef has been deprecated for a while, and that does not work with createElement.

@bmedenwald bmedenwald removed their request for review March 22, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant