daniel-ac-martin / NotGovUK

An implementation of the GOV.UK Design System in React that provides support for writing internal applications in addition to public ones.
https://not-gov.uk/
MIT License
27 stars 8 forks source link

Add React v18 support #1043

Closed daniel-ac-martin closed 2 weeks ago

daniel-ac-martin commented 2 weeks ago

Allows the components to be run under React v18, and prepares some of the libraries for React v18.

Also includes some minor tweaks to make hydration more seamless.

Note: The changes to the types are potentially a breaking change for some people.

closes: #1026

cypress[bot] commented 2 weeks ago

NotGovUK    Run #5349

Run Properties:  status check passed Passed #5349  •  git commit 7ceb46436e: component-tests-helpers: Prepare for React v18
Project NotGovUK
Branch Review react18
Run status status check passed Passed #5349
Run duration 12m 05s
Commit git commit 7ceb46436e: component-tests-helpers: Prepare for React v18
Committer Daniel A.C. Martin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 1
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎
cypress[bot] commented 2 weeks ago

NotGovUK    Run #5350

Run Properties:  status check passed Passed #5350  •  git commit 7f9359a03b ℹ️: Merge 7ceb46436e701fbf1f5dbbbf816ae4386fa57c78 into 230e14bc0e1215a96f89911c8611...
Project NotGovUK
Branch Review react18
Run status status check passed Passed #5350
Run duration 13m 01s
Commit git commit 7f9359a03b ℹ️: Merge 7ceb46436e701fbf1f5dbbbf816ae4386fa57c78 into 230e14bc0e1215a96f89911c8611...
Committer Daniel A.C. Martin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 42
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎