Skip to content

Upgrade path to React 16 #6410

@lukebarnard1

Description

@lukebarnard1

This afternoon, I took a random detour to get Riot working with React 16, for the sake of investigating how difficult this would be. I succeeded, but obviously the diff is huge, so we might not want to do this "right now".

I did not manage to get the react-sdk tests working, primarily because matrix-react-test-utils needs similar treatment (being made compatible with React 16).

Steps to upgrade riot-web, matrix-react-sdk and matrix-react-test-utils:

  • Update various npm dependencies to most recent versions:
    • draft-js-export-html
    • draft-js-export-markdown
    • react
    • react-dom
    • react-gemini-scrollbar
  • Apply react-codemod JSCodeshifts on /src and /test
    • React-PropTypes-to-prop-types
      • will fail on trailing commas at the end of prop types
      • and where there is more than one "React.PropTypes" on a single line
    • class
      • Might render the box it's running on totally useless for a few minutes...
  • s/react-addons-test-utils/react-dom\/test-utils/
  • Fix cases where the React context API has changed(?)

Metadata

Metadata

Assignees

Labels

P3T-TaskTasks for the team like planningX-BlockedZ-Community-PRIssue is solved by a community member's PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions