Skip to content

react 16 to react-18 - #97

Open
jancy01 wants to merge 6 commits into
masterfrom
react-to-18
Open

react 16 to react-18#97
jancy01 wants to merge 6 commits into
masterfrom
react-to-18

Conversation

@jancy01

@jancy01 jancy01 commented Mar 25, 2025

Copy link
Copy Markdown

I have tested this pr #95 with all the lib folder to test ssg-hx-uk and static-site-generator sites to use react18.
In this pr updating the version of react and react-dom to 18.2.0 and react-redux to 9.1.2 and redux to 5.0.0. so we can use this version in consuming repo like ssg-purple-parking, ssg-hx-uk and static-site-generator sites . Once this release is mreged to master , then using this version in ssg-purple-parking to use react18.20.0 .We will have testers involved and PM to check the error data etc.

@jancy01
jancy01 requested review from putvande and tompricetech April 1, 2025 12:35
Comment thread package.json
"react": "18.2.0",
"react-dom": "18.2.0",
"react-redux": "9.1.2",
"redux": "^5.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update these versions to their latest (sensible) versions.
React and React-dom to 18.3.1 and react-redux to 9.2.0.

Would we be able to upgrade Redux to a newer version? The version used is over 6 years old.
What about React, can we (and should we) use 19?

Comment thread src/webpackPages.js

const generateOutput = (template, props, options) => {
const method = props.dataSource && props.dataSource.hydrate ? 'hydrate' : 'render'
const method = props.dataSource && props.dataSource.hydrate ? 'hydrate' : props.dataSource.hydrateRoot ? 'hydrateRoot' : 'render'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be done in a different way? Nested ternary is difficult to read.

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.

2 participants